decord/source/modules/notifications/settings/native/NotificationSettingsChannelPost.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

42 lines
2.1 KiB
TypeScript

// Module ID: 10098
// Function ID: 10099
// Name: NotificationSettingsChannelPost
// Dependencies: [19, 17, 4709, 21, 586, 5642, 1233, 5559, 7059, 2]
// Exports: NotificationSettingsChannelPost
// Module 10098 (NotificationSettingsChannelPost)
import noopAll from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import closure_4 from "updateUserGuildSettingsInternal" /* 4709 */;
import { jsx } from "jsxProd" /* 21 */;
const require = arg1;
noopAll;
let result = require("set").fileFinishedImporting("modules/notifications/settings/native/NotificationSettingsChannelPost.tsx");
export const NotificationSettingsChannelPost = function NotificationSettingsChannelPost(channel) {
const _require = channel;
({ guild_id: importDefault, id: dependencyMap } = channel.channel);
let obj = _require(586);
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) }));
({ muted, newForumThreadsCreated } = stateFromStoresObject);
obj = { style: channel.style, children: null };
obj = { title: null, hasIcons: false, children: null };
const intl = _require(1233).intl;
obj[0] = intl.string(_require(1233).t.bK11jO);
obj1 = { label: null, checked: null, disabled: null, onPress: null };
const intl2 = _require(1233).intl;
obj1[0] = intl2.string(_require(1233).t.Rkgjph);
obj1[1] = newForumThreadsCreated;
if (!muted) {
muted = stateFromStoresObject.guildMuted;
}
obj1[2] = muted;
obj1[3] = function onPress() {
const result = closure_1_1(closure_1_2[8]).setForumThreadsCreated(channel.channel, !newForumThreadsCreated);
};
obj[2] = jsx(_require(5559).TableCheckboxRow, { label: null, checked: null, disabled: null, onPress: null });
obj[1] = jsx(_require(5642).TableRowGroup, { title: null, hasIcons: false, children: null });
return <newForumThreadsCreated title={null} hasIcons={false}>{null}</newForumThreadsCreated>;
};