decord/source/modules/notifications/settings/native/NotificationSettingsMockChannels.tsx

78 lines
3.4 KiB
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 9887
// Function ID: 9888
2026-07-20 16:05:17 +00:00
// Name: NotificationSettingsMockChannels
2026-08-12 06:57:52 +00:00
// Dependencies: [19, 17, 4540, 21, 4344, 712, 1236, 9888, 4849, 4340, 1297, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-12 06:57:52 +00:00
// Module 9887 (NotificationSettingsMockChannels)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import { UnreadSetting } from "ReadStateTypes";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
let require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
createCacheKey = { card: null, channel: null, channelName: null };
createCacheKey = { backgroundColor: require("Themes").colors.BACKGROUND_SURFACE_HIGH, overflow: "hidden", borderRadius: 10, paddingVertical: 8 };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { display: "flex", flexDirection: "row", alignItems: "center", paddingVertical: 4, justifyContent: "space-between", paddingRight: 12 };
createCacheKey[2] = { display: "flex", flexDirection: "row", alignItems: "center" };
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const result = require("ReadStateTypes").fileFinishedImporting("modules/notifications/settings/native/NotificationSettingsMockChannels.tsx");
2026-07-20 16:05:17 +00:00
export default function NotificationSettingsMockChannels(unreadSetting) {
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
2026-07-23 10:11:24 +00:00
const require = tmp;
2026-07-29 08:29:29 +00:00
let obj = { badged: true, unread: true, resolvedUnreadSetting: UnreadSetting.ALL_MESSAGES, name: null };
const intl = require(1236) /* getSystemLocale */.intl;
obj[3] = intl.string(require(1236) /* getSystemLocale */.t.EjLobP);
2026-07-23 10:11:24 +00:00
let items = [obj, , ];
2026-07-29 08:29:29 +00:00
obj = { badged: false, unread: true, resolvedUnreadSetting: UnreadSetting.ONLY_MENTIONS, name: null };
const intl2 = require(1236) /* getSystemLocale */.intl;
obj[3] = intl2.string(require(1236) /* getSystemLocale */.t.Wgpwpp);
2026-07-20 16:05:17 +00:00
items[1] = obj;
2026-07-29 08:29:29 +00:00
obj = { badged: false, unread: false, resolvedUnreadSetting: UnreadSetting.ONLY_MENTIONS, name: null };
const intl3 = require(1236) /* getSystemLocale */.intl;
obj[3] = intl3.string(require(1236) /* getSystemLocale */.t.g9VImh);
2026-07-20 16:05:17 +00:00
items[2] = obj;
if (unreadSetting.unreadSetting === UnreadSetting.ALL_MESSAGES) {
items[1].resolvedUnreadSetting = UnreadSetting.ALL_MESSAGES;
}
return callback(View, {
style: tmp.card,
children: items.map((unread) => {
2026-07-29 08:29:29 +00:00
let obj = { style: tmp.channel, children: null };
obj = { style: tmp.channelName, children: null };
2026-07-20 16:05:17 +00:00
obj = { unread: unread.unread, resolvedUnreadSetting: unread.resolvedUnreadSetting };
2026-07-23 10:11:24 +00:00
const items = [outer1_5(outer1_1(outer1_2[7]), obj), , ];
2026-07-29 08:29:29 +00:00
const obj1 = { style: { marginLeft: 12 }, size: "xs", color: null };
2026-07-20 16:05:17 +00:00
let str;
2026-07-23 10:11:24 +00:00
if (unread.resolvedUnreadSetting === outer1_4.ONLY_MENTIONS) {
2026-07-20 16:05:17 +00:00
str = "text-muted";
}
2026-07-29 08:29:29 +00:00
obj1[2] = str;
2026-07-23 10:11:24 +00:00
items[1] = outer1_5(outer1_6(outer1_2[8]).TextIcon, obj1);
2026-07-29 08:29:29 +00:00
const obj2 = { style: { marginLeft: 4 }, variant: "text-sm/semibold", color: null, children: null };
2026-07-20 16:05:17 +00:00
let str2;
2026-07-23 10:11:24 +00:00
if (unread.resolvedUnreadSetting === outer1_4.ONLY_MENTIONS) {
2026-07-20 16:05:17 +00:00
str2 = "text-muted";
}
2026-07-29 08:29:29 +00:00
obj2[2] = str2;
obj2[3] = unread.name;
2026-07-23 10:11:24 +00:00
items[2] = outer1_5(outer1_6(outer1_2[9]).Text, obj2);
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-07-23 10:11:24 +00:00
const items1 = [outer1_6(outer1_3, obj), ];
2026-07-20 16:05:17 +00:00
let num = 0;
if (unread.badged) {
num = 1;
}
2026-07-29 08:29:29 +00:00
items1[1] = outer1_5(outer1_6(outer1_2[10]).Badge, { value: num });
obj[1] = items1;
2026-07-23 10:11:24 +00:00
return outer1_6(outer1_3, obj, unread.name);
2026-07-20 16:05:17 +00:00
})
});
};