decord/source/modules/parent_tools/hooks/useSelectedTab.tsx

31 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 14796
// Function ID: 14797
2026-07-20 16:05:17 +00:00
// Name: useSelectedMyFamilyTab
// Dependencies: [7470, 7471, 673, 644, 7472, 695, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 14796 (useSelectedMyFamilyTab)
2026-09-02 09:53:35 +00:00
import defaultAreStatesEqual from "defaultAreStatesEqual" /* 644 */;
import closure_3 from "freshTeenActivityWithMap" /* 7470 */;
import items from "items" /* 7471 */;
2026-09-02 09:53:35 +00:00
import { AnalyticEvents } from "ME" /* 673 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
({ FamilyCenterAction: c4, FamilyCenterSubPages } = items);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/parent_tools/hooks/useSelectedTab.tsx");
2026-07-20 16:05:17 +00:00
export default function useSelectedMyFamilyTab() {
2026-08-24 06:08:38 +00:00
let obj = {
selectedTab: defaultAreStatesEqual.useStateFromStores(items, () => selectedTab.getSelectedTab()),
handleTabChange(tab) {
let obj = callback(7472);
2026-08-24 06:08:38 +00:00
tab = obj.selectTab(tab);
obj = { action: TabChange.TabChange, tab };
2026-09-02 09:53:35 +00:00
callback(695).track(constants.FAMILY_CENTER_ACTION, obj);
2026-08-24 06:08:38 +00:00
}
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
items = [closure_3];
2026-07-20 16:05:17 +00:00
return obj;
};
export const FAMILY_CENTER_TAB_ANALYTICS_LABELS = { [FamilyCenterSubPages.ACTIVITY]: "family_center_activity_tab", [FamilyCenterSubPages.REQUESTS]: "family_center_requests_tab", [FamilyCenterSubPages.SETTINGS]: "family_center_settings_tab", [FamilyCenterSubPages.CONTENT_AND_SOCIAL]: "family_center_content_and_social_panel", [FamilyCenterSubPages.DATA_AND_PRIVACY]: "family_center_data_and_privacy_panel", [FamilyCenterSubPages.SCREEN_TIME_CONTROLS]: "family_center_screen_time_controls_panel" };