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

47 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 10271
// Function ID: 79393
2026-07-20 16:05:17 +00:00
// Name: NotificationSettingsChannelPost
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 27, 4326, 33, 566, 5501, 1212, 9024, 5079, 2]
2026-07-20 16:05:17 +00:00
// Exports: NotificationSettingsChannelPost
2026-07-27 11:26:19 +00:00
// Module 10271 (NotificationSettingsChannelPost)
2026-07-23 10:11:24 +00:00
import "result";
import { View } from "get ActivityIndicator";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { jsx } from "jsxProd";
const require = arg1;
let result = require("_isNativeReflectConstruct").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
let dependencyMap;
let importDefault;
2026-07-20 16:05:17 +00:00
let muted;
let newForumThreadsCreated;
2026-07-23 10:11:24 +00:00
const _require = channel;
({ guild_id: importDefault, id: dependencyMap } = channel.channel);
let obj = _require(566);
const items = [_isNativeReflectConstruct];
const stateFromStoresObject = obj.useStateFromStoresObject(items, () => ({ muted: outer1_4.isChannelMuted(closure_1, closure_2), guildMuted: outer1_4.isMuted(closure_1), newForumThreadsCreated: outer1_4.getNewForumThreadsCreated(channel.channel) }));
2026-07-20 16:05:17 +00:00
({ muted, newForumThreadsCreated } = stateFromStoresObject);
obj = { style: channel.style };
obj = {};
2026-07-23 10:11:24 +00:00
const intl = _require(1212).intl;
obj.title = intl.string(_require(1212).t.bK11jO);
2026-07-20 16:05:17 +00:00
obj.hasIcons = false;
const obj1 = {};
2026-07-23 10:11:24 +00:00
const intl2 = _require(1212).intl;
obj1.label = intl2.string(_require(1212).t.Rkgjph);
2026-07-20 16:05:17 +00:00
obj1.checked = newForumThreadsCreated;
if (!muted) {
muted = stateFromStoresObject.guildMuted;
}
obj1.disabled = muted;
obj1.onPress = function onPress() {
2026-07-23 10:11:24 +00:00
const result = outer1_1(outer1_2[8]).setForumThreadsCreated(channel.channel, !newForumThreadsCreated);
2026-07-20 16:05:17 +00:00
};
2026-07-25 08:10:48 +00:00
obj.children = jsx(_require(9024).TableCheckboxRow, {});
2026-07-24 07:16:23 +00:00
obj.children = jsx(_require(5501).TableRowGroup, {});
2026-07-23 10:11:24 +00:00
return <newForumThreadsCreated />;
2026-07-20 16:05:17 +00:00
};