decord/source/modules/notifications/settings/native/MobileNotifSettingsRoutes.tsx
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

143 lines
4.7 KiB
TypeScript

// Module ID: 15981
// Function ID: 15982
// Name: MobileNotifSettingsRoutes
// Dependencies: [11564, 1114, 9869, 14505, 15982, 15983, 2722, 15550, 15989, 15990, 15991, 15992, 2]
// Module 15981 (MobileNotifSettingsRoutes)
import util from "util" /* 1114 */;
import _modDef2722 from "module_2722" /* 2722 */;
import BellIcon from "BellIcon" /* 9869 */;
import notifications_NotificationSettingsUtils from "notifications/NotificationSettingsUtils" /* 14505 */;
import MobileNotifSettings from "MobileNotifSettings" /* 15550 */;
import MobileNotifSettingsSections from "MobileNotifSettingsSections" /* 15982 */;
import SettingBuilders_mod from "SettingBuilders" /* 11564 */;
import size from "module_2" /* 2 */;
const require = globalThis.__r;
let SettingBuilders = SettingBuilders_mod;
const obj = {
useTitle() {
const intl = util.intl;
return intl.string(util.t.HcoRu0);
},
IconComponent: BellIcon.BellIcon,
parent: null,
usePredicate() {
return notifications_NotificationSettingsUtils.useIsDeclarativeSettingsUIAvailable("RootRoute");
},
screen: {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIFICATIONS_REDESIGN,
getComponent() {
return require("RedesignSettingsNotificationScreen").default;
}
}
};
const route = SettingBuilders.createRoute(obj);
let SettingBuilders = SettingBuilders_mod;
const obj3 = {
useTitle() {
const intl = util.intl;
return intl.string(_modDef2722.S5cB9e);
},
parent: MobileNotifSettings.MobileNotifSettings.NOTIFICATIONS_REDESIGN,
usePredicate() {
return notifications_NotificationSettingsUtils.useNotifCategoryVisibility("REALTIME");
},
screen: null
};
const obj2 = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIFICATIONS_REDESIGN,
getComponent() {
return require("RedesignSettingsNotificationScreen").default;
}
};
obj3.screen = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIF_REALTIME,
getComponent() {
return require("RedesignSettingsRealtimeScreen").default;
}
};
const route1 = SettingBuilders.createRoute(obj3);
let SettingBuilders = SettingBuilders_mod;
const obj5 = {
useTitle() {
const intl = util.intl;
return intl.string(_modDef2722["UzRF+8"]);
},
parent: MobileNotifSettings.MobileNotifSettings.NOTIFICATIONS_REDESIGN,
usePredicate() {
return notifications_NotificationSettingsUtils.useNotifCategoryVisibility("CATEGORY_SOCIAL");
},
screen: null
};
const obj4 = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIF_REALTIME,
getComponent() {
return require("RedesignSettingsRealtimeScreen").default;
}
};
obj5.screen = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIF_CATEGORY_SOCIAL,
getComponent() {
return require("RedesignSettingsCategorySocialScreen").default;
}
};
const route2 = SettingBuilders.createRoute(obj5);
let SettingBuilders = SettingBuilders_mod;
const obj7 = {
useTitle() {
const intl = util.intl;
return intl.string(_modDef2722.zRKbpz);
},
parent: MobileNotifSettings.MobileNotifSettings.NOTIFICATIONS_REDESIGN,
usePredicate() {
return notifications_NotificationSettingsUtils.useNotifCategoryVisibility("CATEGORY_SERVER");
},
screen: null
};
const obj6 = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIF_CATEGORY_SOCIAL,
getComponent() {
return require("RedesignSettingsCategorySocialScreen").default;
}
};
obj7.screen = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIF_CATEGORY_SERVER,
getComponent() {
return require("RedesignSettingsCategoryServerScreen").default;
}
};
const route3 = SettingBuilders.createRoute(obj7);
let SettingBuilders = SettingBuilders_mod;
const obj9 = {
useTitle() {
const intl = util.intl;
return intl.string(_modDef2722.q5M7HV);
},
parent: MobileNotifSettings.MobileNotifSettings.NOTIFICATIONS_REDESIGN,
usePredicate() {
return notifications_NotificationSettingsUtils.useNotifCategoryVisibility("CATEGORY_OTHER");
},
screen: null
};
const obj8 = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIF_CATEGORY_SERVER,
getComponent() {
return require("RedesignSettingsCategoryServerScreen").default;
}
};
obj9.screen = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIF_CATEGORY_OTHER,
getComponent() {
return require("RedesignSettingsCategoryOtherScreen").default;
}
};
const route4 = SettingBuilders.createRoute(obj9);
const result = size.fileFinishedImporting("modules/notifications/settings/native/MobileNotifSettingsRoutes.tsx");
export const RootRoute = route;
export const RealtimeRoute = route1;
export const CategorySocialRoute = route2;
export const CategoryServerRoute = route3;
export const CategoryOtherRoute = route4;