decord/source/modules/lobbies/hooks/useChannelsAllowedToUnlink.tsx

40 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 16272
// Function ID: 126411
2026-07-20 16:05:17 +00:00
// Name: getChannelsAllowedToUnlink
2026-07-25 08:10:48 +00:00
// Dependencies: [1908, 3759, 10131, 566, 2]
2026-07-20 16:05:17 +00:00
// Exports: useChannelsAllowedToUnlink
2026-07-25 08:10:48 +00:00
// Module 16272 (getChannelsAllowedToUnlink)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { GUILD_SELECTABLE_CHANNELS_KEY as closure_3 } from "_isNativeReflectConstruct";
import closure_4 from "_isNativeReflectConstruct";
let require = arg1;
2026-07-20 16:05:17 +00:00
function getChannelsAllowedToUnlink(arg0) {
let obj = arg1;
let tmp = arg2;
if (arg1 === undefined) {
2026-07-23 10:11:24 +00:00
obj = _isNativeReflectConstruct;
2026-07-20 16:05:17 +00:00
}
if (tmp === undefined) {
tmp = closure_4;
}
2026-07-23 10:11:24 +00:00
const require = tmp;
2026-07-20 16:05:17 +00:00
if (null == arg0) {
let items = [];
} else {
2026-07-23 10:11:24 +00:00
const found = obj.getChannels(arg0)[closure_3].filter((channel) => tmp(outer1_1[2]).canUnlinkLobbyChannel(channel.channel, tmp));
2026-07-20 16:05:17 +00:00
items = found.map((channel) => channel.channel);
const arr = obj.getChannels(arg0)[closure_3];
}
return items;
}
2026-07-23 10:11:24 +00:00
const result = require("canUnlinkLobbyChannel").fileFinishedImporting("modules/lobbies/hooks/useChannelsAllowedToUnlink.tsx");
2026-07-20 16:05:17 +00:00
export { getChannelsAllowedToUnlink };
export const useChannelsAllowedToUnlink = function useChannelsAllowedToUnlink(id) {
2026-07-23 10:11:24 +00:00
const _require = id;
const items = [closure_4, _isNativeReflectConstruct];
return _require(566).useStateFromStoresArray(items, () => outer1_5(closure_0, outer1_2, outer1_4));
2026-07-20 16:05:17 +00:00
};