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

45 lines
2.3 KiB
TypeScript
Raw Normal View History

// Module ID: 10260
// Function ID: 10261
2026-07-20 16:05:17 +00:00
// Name: NotificationSettingsChannelPost
// Dependencies: [19, 17, 4788, 21, 504, 5739, 1114, 5656, 7193, 2]
2026-07-20 16:05:17 +00:00
// Exports: NotificationSettingsChannelPost
// Module 10260 (NotificationSettingsChannelPost)
import NotificationSettingsModalActionCreatorsDefault from "NotificationSettingsModalActionCreators" /* 7193 */;
import noop from "module_19" /* 19 */;
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 4788 */;
2026-07-23 10:11:24 +00:00
const require = globalThis.__r;
const require = fn;
const View = fn(17).View;
const jsx = fn(21).jsx;
const size = fn(2);
let result = size.fileFinishedImporting("modules/notifications/settings/native/NotificationSettingsChannelPost.tsx");
2026-07-20 16:05:17 +00:00
export const NotificationSettingsChannelPost = function NotificationSettingsChannelPost(channel) {
_require = channel;
2026-07-23 10:11:24 +00:00
({ guild_id: importDefault, id: dependencyMap } = channel.channel);
const items = [UserGuildSettingsStore];
const stateFromStoresObject = require("initialize").useStateFromStoresObject(items, () => ({ muted: UserGuildSettingsStore.isChannelMuted(importDefault, dependencyMap), guildMuted: UserGuildSettingsStore.isMuted(importDefault), newForumThreadsCreated: UserGuildSettingsStore.getNewForumThreadsCreated(channel.channel) }));
2026-07-20 16:05:17 +00:00
({ muted, newForumThreadsCreated } = stateFromStoresObject);
const obj2 = { style: channel.style, children: null };
const obj3 = { title: null, hasIcons: false, children: null };
const intl = require("util").intl;
obj3.title = intl.string(require("util").t.bK11jO);
const obj4 = { label: null, checked: null, disabled: null, onPress: null };
const intl2 = require("util").intl;
obj4.label = intl2.string(require("util").t.Rkgjph);
obj4.checked = newForumThreadsCreated;
2026-07-20 16:05:17 +00:00
if (!muted) {
muted = stateFromStoresObject.guildMuted;
}
obj4.disabled = muted;
obj4.onPress = function onPress() {
const result = NotificationSettingsModalActionCreatorsDefault.setForumThreadsCreated(channel.channel, !newForumThreadsCreated);
2026-07-20 16:05:17 +00:00
};
obj3.children = jsx(require("TableCheckboxRow").TableCheckboxRow, { label: null, checked: null, disabled: null, onPress: null });
obj2.children = jsx(require("TableRowGroup").TableRowGroup, { title: null, hasIcons: false, children: null });
return <newForumThreadsCreated style={arg0.style}>{null}</newForumThreadsCreated>;
2026-07-20 16:05:17 +00:00
};