Files
discord-decomp/sources/modules/notifications/settings/native/NotificationSettingsMessageNotificationActionSheet.tsx
T
2026-07-27 16:20:00 +03:00

63 lines
4.2 KiB
TypeScript

/* Metro module 10953; source: modules/notifications/settings/native/NotificationSettingsMessageNotificationActionSheet.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 6275, 10950, 4573, 1244, 7988, 7987, 2] */
function _fun83941(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11139:6, offset: 0x01f2f932, size: 326 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(661) /* metro dependency 661: Constants */).UserNotificationSettings;
let value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object2.sheet = {backgroundColor: BACKGROUND_BASE_LOWEST};
object2.header = {'padding': 24, 'paddingTop': 0};
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object2.content = {backgroundColor: BACKGROUND_BASE_LOWER, padding: 16};
object2.form = {'marginTop': 8, 'marginBottom': 16};
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsMessageNotificationActionSheet.tsx');
exports.default = NotificationSettingsMessageNotificationActionSheet;
}
function NotificationSettingsMessageNotificationActionSheet(a0) { // fn#83942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11139:548, offset: 0x01f2fa78, size: 663 bytes, params: 2, frame: 32
const styles = useStyles();
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const view = <View style={styles.header}>{((Component) => <Component notificationSetting={a0.value} />)(importDefault(10950) /* metro dependency 10950: NotificationSettingsMockMessage */)}</View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const items2 = [<Text variant="text-sm/semibold">{Reflect.apply(string, intl, [t['1m22ZB']])}</Text>];
items2[1] = <Text variant="text-xs/medium" color="text-muted" />;
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
const value5 = a0.value;
const onChange = a0.onChange;
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
string = intl.string;
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
const items3 = [<TableRadioRow label={Reflect.apply(string, intl,
[t['HVah/3']])} value={ALL_MESSAGES} subLabel={a0.allMessagesSubLabel} />];
string = intl.string;
const ONLY_MENTIONS = UserNotificationSettings.ONLY_MENTIONS;
items3[1] = <TableRadioRow label={Reflect.apply(string, intl, [t['tu+ZWJ']])} value={ONLY_MENTIONS} />;
string = intl.string;
const X4wWUi = (require(1244) /* metro dependency 1244: indexNative */).t.X4wWUi;
const NO_MESSAGES = UserNotificationSettings.NO_MESSAGES;
items3[2] = <TableRadioRow label={Reflect.apply(string, intl, [X4wWUi])} value={NO_MESSAGES} />;
items2[2] = <View style={styles.form}><TableRadioGroup defaultValue={value5} onChange={onChange} hasIcons={false}>{items3}</TableRadioGroup></View>;
return (
<BottomSheet startExpanded backgroundStyles={styles.sheet}>
{view}
<View style={styles.content}>
{items2}
</View>
</BottomSheet>
);
}