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

43 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 10254
// Function ID: 10255
2026-07-20 16:05:17 +00:00
// Name: NotificationSettingsChannelPost
2026-09-01 10:26:29 +00:00
// Dependencies: [19, 17, 4701, 21, 589, 5992, 1236, 7683, 5487, 2]
2026-07-20 16:05:17 +00:00
// Exports: NotificationSettingsChannelPost
2026-09-01 10:26:29 +00:00
// Module 10254 (NotificationSettingsChannelPost)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
2026-09-01 10:26:29 +00:00
import closure_4 from "updateUserGuildSettingsInternal" /* 4701 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
let result = require("set").fileFinishedImporting("modules/notifications/settings/native/NotificationSettingsChannelPost.tsx");
2026-07-20 16:05:17 +00:00
export const NotificationSettingsChannelPost = function NotificationSettingsChannelPost(channel) {
2026-07-23 10:11:24 +00:00
const _require = channel;
({ guild_id: importDefault, id: dependencyMap } = channel.channel);
2026-07-29 08:29:29 +00:00
let obj = _require(589);
2026-08-24 06:08:38 +00:00
const items = [closure_4];
const stateFromStoresObject = obj.useStateFromStoresObject(items, () => ({ muted: closure_1_4.isChannelMuted(closure_1, closure_2), guildMuted: closure_1_4.isMuted(closure_1), newForumThreadsCreated: closure_1_4.getNewForumThreadsCreated(channel.channel) }));
2026-07-20 16:05:17 +00:00
({ muted, newForumThreadsCreated } = stateFromStoresObject);
2026-07-29 08:29:29 +00:00
obj = { style: channel.style, children: null };
obj = { title: null, hasIcons: false, children: null };
const intl = _require(1236).intl;
obj[0] = intl.string(_require(1236).t.bK11jO);
2026-08-24 06:08:38 +00:00
obj1 = { label: null, checked: null, disabled: null, onPress: null };
2026-07-29 08:29:29 +00:00
const intl2 = _require(1236).intl;
obj1[0] = intl2.string(_require(1236).t.Rkgjph);
obj1[1] = newForumThreadsCreated;
2026-07-20 16:05:17 +00:00
if (!muted) {
muted = stateFromStoresObject.guildMuted;
}
2026-07-29 08:29:29 +00:00
obj1[2] = muted;
obj1[3] = function onPress() {
2026-08-24 06:08:38 +00:00
const result = closure_1_1(closure_1_2[8]).setForumThreadsCreated(channel.channel, !newForumThreadsCreated);
2026-07-20 16:05:17 +00:00
};
2026-09-01 10:26:29 +00:00
obj[2] = jsx(_require(7683).TableCheckboxRow, { label: null, checked: null, disabled: null, onPress: null });
obj[1] = jsx(_require(5992).TableRowGroup, { title: null, hasIcons: false, children: null });
2026-07-29 08:29:29 +00:00
return <newForumThreadsCreated title={null} hasIcons={false}>{null}</newForumThreadsCreated>;
2026-07-20 16:05:17 +00:00
};