Files
discord-decomp/modules/reactions/useCanRemoveAllReactions.tsx
T
2026-11-01 12:12:55 +02:00

11 lines
675 B
TypeScript

// Metro module 9457 (f9458).
import PermissionStore from "../../stores/PermissionStore";
import { Permissions } from "../../Constants";
import { useIsActiveChannelOrUnarchivableThread } from "../threads/ThreadHooks";
import { useStateFromStores } from "../../_bundle/Module589";
export default function useCanRemoveAllReactions(a0) {
const isActiveChannelOrUnarchivableThread = useIsActiveChannelOrUnarchivableThread(a0);
const stateFromStores = useStateFromStores([PermissionStore], () => PermissionStore.can(Permissions.MANAGE_MESSAGES, a0) && isActiveChannelOrUnarchivableThread, [a0, isActiveChannelOrUnarchivableThread]);
return a0 != null && stateFromStores;
};