decord/alpha/source/modules/reactions/useCanRemoveAllReactions.tsx

74 lines
2.5 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 9589
// Function ID: 9590
2026-07-20 16:05:17 +00:00
// Name: useCanRemoveAllReactions
2026-10-12 06:59:38 +00:00
// Dependencies: [4750, 1085, 558, 576, 6972, 504, 2]
2026-07-20 16:05:17 +00:00
2026-10-12 06:59:38 +00:00
// Module 9589 (useCanRemoveAllReactions)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-10 08:08:14 +00:00
import PermissionStore from "PermissionStore" /* 4750 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const require = globalThis.__r;
2026-10-03 08:58:59 +00:00
let _require;
2026-10-03 08:58:59 +00:00
const Permissions = Constants.Permissions;
2026-10-08 09:57:35 +00:00
let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useCanRemoveAllReactions(arg0) {
2026-10-03 08:58:59 +00:00
let closure_0;
let first;
let isActiveChannelOrUnarchivableThread;
_require = arg0;
let tmp = _require;
const obj = require("react");
const cResult = obj.c(5);
const obj2 = require("ThreadHooks");
const tmp2 = isActiveChannelOrUnarchivableThread;
isActiveChannelOrUnarchivableThread = obj2.useIsActiveChannelOrUnarchivableThread(arg0);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [PermissionStore];
cResult[0] = items;
first = items;
} else {
first = cResult[0];
}
if (cResult[1] === arg0) {
let tmp7;
let tmp8;
if (cResult[2] === isActiveChannelOrUnarchivableThread) {
tmp7 = cResult[3];
tmp8 = cResult[4];
}
const tmpResult = tmp(tmp2[5]);
const tmp10 = null != arg0 && tmpResult.useStateFromStores(first, tmp7, tmp8);
return tmp10;
}
const fn = function o() {
const tmp = PermissionStore.can(Permissions.MANAGE_MESSAGES, closure_0) && isActiveChannelOrUnarchivableThread;
return tmp;
};
const items1 = [arg0, isActiveChannelOrUnarchivableThread];
cResult[1] = arg0;
cResult[2] = isActiveChannelOrUnarchivableThread;
cResult[3] = fn;
cResult[4] = items1;
tmp8 = items1;
tmp7 = fn;
2026-10-08 09:57:35 +00:00
}) : (function useCanRemoveAllReactions(arg0) {
2026-10-03 08:58:59 +00:00
let closure_0;
let isActiveChannelOrUnarchivableThread;
_require = arg0;
const obj = require("ThreadHooks");
2026-10-03 08:58:59 +00:00
isActiveChannelOrUnarchivableThread = obj.useIsActiveChannelOrUnarchivableThread(arg0);
const items = [PermissionStore];
2026-10-03 08:58:59 +00:00
const items1 = [arg0, isActiveChannelOrUnarchivableThread];
const obj2 = require("get initialized");
const tmp2 = null != arg0 && obj2.useStateFromStores(items, () => {
const tmp = PermissionStore.can(Permissions.MANAGE_MESSAGES, closure_0) && isActiveChannelOrUnarchivableThread;
return tmp;
}, items1);
return tmp2;
});
const result = size.fileFinishedImporting("modules/reactions/useCanRemoveAllReactions.tsx");
export default tmp2;