decord/source/modules/reactions/useCanRemoveAllReactions.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

25 lines
1,016 B
TypeScript

// Module ID: 11406
// Function ID: 11407
// Name: useCanRemoveAllReactions
// Dependencies: [4276, 1074, 7379, 504, 2]
// Exports: default
// Module 11406 (useCanRemoveAllReactions)
import PermissionStore from "PermissionStore" /* 4276 */;
const require = globalThis.__r;
const require = fn;
const Permissions = fn(1074).Permissions;
const size = fn(2);
const result = size.fileFinishedImporting("modules/reactions/useCanRemoveAllReactions.tsx");
export default function useCanRemoveAllReactions(channel) {
_require = channel;
isActiveChannelOrUnarchivableThread = require("ThreadHooks").useIsActiveChannelOrUnarchivableThread(channel);
const obj = require("ThreadHooks");
const items = [PermissionStore];
const items1 = [channel, isActiveChannelOrUnarchivableThread];
const obj2 = require("initialize");
return null != channel && require("initialize").useStateFromStores(items, () => PermissionStore.can(Permissions.MANAGE_MESSAGES, closure_0) && isActiveChannelOrUnarchivableThread, items1);
};