This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
// Metro module 10192 (f10193).
import PermissionStore from "../../stores/PermissionStore";
import { Permissions } from "../../Constants";
import { useStateFromStores } from "../../_bundle/Module589";
export function canUnlinkLobbyChannel(a0, r6 = PermissionStore) {
return a0 != null && (a0.linkedLobby != null && r6.can(Permissions.MANAGE_CHANNELS, a0) && r6.can(Permissions.VIEW_CHANNEL, a0) && r6.can(Permissions.SEND_MESSAGES, a0));
}
export function useCanUnlinkLobbyChannel(c17757_0) {
return useStateFromStores([PermissionStore], () => {
if (PermissionStore !== void 0) {
return c17757_0 != null && (c17757_0.linkedLobby != null && PermissionStore.can(Permissions.MANAGE_CHANNELS, c17757_0) && PermissionStore.can(Permissions.VIEW_CHANNEL, c17757_0) && PermissionStore.can(Permissions.SEND_MESSAGES, c17757_0));
}
});
}