decord/source/modules/threads/native/components/ThreadNotificationSettingsBottomSheet.tsx

52 lines
2 KiB
TypeScript
Raw Normal View History

// Module ID: 11345
// Function ID: 11346
// Name: ThreadNotificationSettingsBottomSheet
// Dependencies: [1113, 21, 10120, 7211, 7163, 1114, 5699, 7779, 5702, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 11345 (ThreadNotificationSettingsBottomSheet)
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
import ThreadConstants from "ThreadConstants" /* 1113 */;
import ThreadActionCreatorsDefault from "ThreadActionCreators" /* 7779 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
let closure_3 = ThreadConstants.getThreadNotificationOptions;
2026-08-24 06:08:38 +00:00
const jsx = jsxProd.jsx;
const result = size.fileFinishedImporting("modules/threads/native/components/ThreadNotificationSettingsBottomSheet.tsx");
2026-07-20 16:05:17 +00:00
export default function ThreadNotificationsBottomSheet(channel) {
channel = channel.channel;
const threadNotificationSetting = channel(10120).useThreadNotificationSetting(channel);
const obj2 = { header: null, children: null };
const obj3 = { title: null };
const intl = channel(1114).intl;
obj3.title = intl.string(channel(1114).t.h850Ss);
obj2.header = jsx(channel(7163).BottomSheetTitleHeader, { title: null });
const obj4 = {
2026-07-20 16:05:17 +00:00
hasIcons: false,
value: threadNotificationSetting,
onChange(flags) {
return ThreadActionCreatorsDefault.setNotificationSettings(channel, { flags });
2026-07-29 08:29:29 +00:00
},
accessibilityLabel: null,
children: null
2026-07-20 16:05:17 +00:00
};
const intl2 = channel(1114).intl;
obj4.accessibilityLabel = intl2.string(channel(1114).t.h850Ss);
const obj = channel(10120);
obj4.children = closure_3().map((label) => {
2026-07-20 16:05:17 +00:00
const setting = label.setting;
return jsx(channel(dependencyMap[8]).TableRadioRow, { value: setting, label: label.label }, "" + setting);
2026-07-23 10:11:24 +00:00
});
obj2.children = jsx(channel(5699).TableRadioGroup, {
2026-07-23 10:11:24 +00:00
hasIcons: false,
value: threadNotificationSetting,
onChange(flags) {
return ThreadActionCreatorsDefault.setNotificationSettings(channel, { flags });
2026-07-29 08:29:29 +00:00
},
accessibilityLabel: null,
children: null
2026-07-20 16:05:17 +00:00
});
return jsx(channel(7211).ActionSheet, { header: null, children: null });
2026-07-20 16:05:17 +00:00
};