decord/source/modules/notifications/settings/native/NotificationSettingsMessageNotificationActionSheet.tsx
2026-08-26 06:04:24 +00:00

70 lines
3.5 KiB
TypeScript

// Module ID: 10060
// Function ID: 10061
// Name: NotificationSettingsMessageNotificationActionSheet
// Dependencies: [19, 17, 676, 21, 4444, 712, 5569, 10057, 4440, 1236, 8203, 8202, 2]
// Exports: default
// Module 10060 (NotificationSettingsMessageNotificationActionSheet)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import Text from "Text" /* 4440 */;
import Background from "Background" /* 5569 */;
import TableRadioRow from "TableRadioRow" /* 8202 */;
import context from "context" /* 8203 */;
import NotificationSettingsMockMessageDefault from "NotificationSettingsMockMessage" /* 10057 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { UserNotificationSettings } from "ME" /* 676 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4444 */;
require = arg1;
noopAll;
({ jsx: c5, jsxs: closure_6 } = jsxProd);
createCacheKey = { sheet: null, header: null, content: null, form: null };
createCacheKey = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWEST };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { padding: 24, paddingTop: 0 };
createCacheKey[2] = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWER, padding: 16 };
createCacheKey[3] = { marginTop: 8, marginBottom: 16 };
let closure_7 = createCacheKey.createStyles(createCacheKey);
let obj1 = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWER, padding: 16 };
const result = require("set").fileFinishedImporting("modules/notifications/settings/native/NotificationSettingsMessageNotificationActionSheet.tsx");
export default function NotificationSettingsMessageNotificationActionSheet(defaultValue) {
const tmp = callback3();
let obj = { startExpanded: true, backgroundStyles: tmp.sheet, children: null };
obj = { style: tmp.header, children: callback(NotificationSettingsMockMessageDefault, obj) };
obj = { notificationSetting: defaultValue.value };
const items = [callback(View, obj), ];
obj1 = { style: tmp.content, children: null };
const obj2 = { variant: "text-sm/semibold", children: null };
const intl = getSystemLocale.intl;
obj2[1] = intl.string(getSystemLocale.t["1m22ZB"]);
const items1 = [callback(Text.Text, obj2), callback(Text.Text, { variant: "text-xs/medium", color: "text-muted" }), ];
const obj3 = { style: tmp.form, children: null };
const obj4 = { defaultValue: defaultValue.value, onChange: defaultValue.onChange, hasIcons: false, children: null };
const obj5 = { label: null, value: null, subLabel: null };
const intl2 = getSystemLocale.intl;
obj5[0] = intl2.string(getSystemLocale.t["HVah/3"]);
obj5[1] = UserNotificationSettings.ALL_MESSAGES;
obj5[2] = defaultValue.allMessagesSubLabel;
const items2 = [callback(TableRadioRow.TableRadioRow, obj5), , ];
const obj6 = { label: null, value: null };
const intl3 = getSystemLocale.intl;
obj6[0] = intl3.string(getSystemLocale.t["tu+ZWJ"]);
obj6[1] = UserNotificationSettings.ONLY_MENTIONS;
items2[1] = callback(TableRadioRow.TableRadioRow, obj6);
const obj7 = { label: null, value: null };
const intl4 = getSystemLocale.intl;
obj7[0] = intl4.string(getSystemLocale.t.X4wWUi);
obj7[1] = UserNotificationSettings.NO_MESSAGES;
items2[2] = callback(TableRadioRow.TableRadioRow, obj7);
obj4[3] = items2;
obj3[1] = callback2(context.TableRadioGroup, obj4);
items1[2] = callback(View, obj3);
obj1[1] = items1;
items[1] = callback2(View, obj1);
obj[2] = items;
return callback2(Background.BottomSheet, obj);
};