decord/source/modules/lobbies/LobbyUtils.tsx

41 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 10199
// Function ID: 78810
2026-07-20 16:05:17 +00:00
// Name: canUnlinkLobbyChannel
2026-07-23 10:11:24 +00:00
// Dependencies: [3758, 653, 566, 2]
2026-07-20 16:05:17 +00:00
// Exports: useCanUnlinkLobbyChannel
2026-07-24 07:16:23 +00:00
// Module 10199 (canUnlinkLobbyChannel)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { Permissions } from "ME";
const require = arg1;
function canUnlinkLobbyChannel(channel, closure_0) {
let obj = closure_0;
if (closure_0 === undefined) {
obj = _isNativeReflectConstruct;
2026-07-20 16:05:17 +00:00
}
let tmp = null != channel;
if (tmp) {
let canResult = null != channel.linkedLobby;
if (canResult) {
canResult = obj.can(Permissions.MANAGE_CHANNELS, channel);
}
if (canResult) {
canResult = obj.can(Permissions.VIEW_CHANNEL, channel);
}
if (canResult) {
canResult = obj.can(Permissions.SEND_MESSAGES, channel);
}
tmp = canResult;
}
return tmp;
}
2026-07-23 10:11:24 +00:00
const result = require("initialize").fileFinishedImporting("modules/lobbies/LobbyUtils.tsx");
2026-07-20 16:05:17 +00:00
export { canUnlinkLobbyChannel };
export const useCanUnlinkLobbyChannel = function useCanUnlinkLobbyChannel(channel) {
2026-07-23 10:11:24 +00:00
const _require = channel;
const items = [_isNativeReflectConstruct];
return _require(566).useStateFromStores(items, () => outer1_4(closure_0, outer1_2));
2026-07-20 16:05:17 +00:00
};