2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 12589
|
|
|
|
|
// Function ID: 12590
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useIsVoiceChannelFull
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [1910, 4024, 4547, 505, 589, 4984, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default, useIsVoiceChannelLocked
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 12589 (useIsVoiceChannelFull)
|
|
|
|
|
import closure_2 from "createGuildRecordFromRust" /* 1910 */;
|
|
|
|
|
import closure_3 from "getUncachedChannelPermissions" /* 4024 */;
|
|
|
|
|
import closure_4 from "updateVoiceState" /* 4547 */;
|
|
|
|
|
import { Permissions } from "sum" /* 505 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/voice_calls/useIsVoiceChannelFull.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useIsVoiceChannelFull(arg0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = arg0;
|
2026-08-24 06:08:38 +00:00
|
|
|
const items = [closure_4, closure_2];
|
|
|
|
|
return _require(589).useStateFromStores(items, () => callback(closure_1_1[5]).isChannelFull(callback, closure_1_4, closure_1_2));
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const useIsVoiceChannelLocked = function useIsVoiceChannelLocked(channel) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = channel;
|
2026-08-24 06:08:38 +00:00
|
|
|
const items = [closure_3];
|
2026-07-20 16:05:17 +00:00
|
|
|
const items1 = [channel];
|
2026-07-29 08:29:29 +00:00
|
|
|
return _require(589).useStateFromStores(items, () => {
|
|
|
|
|
let tmp2 = null == closure_0;
|
|
|
|
|
if (!tmp2) {
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp2 = !closure_1_3.can(closure_1_5.CONNECT, tmp);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return tmp2;
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items1);
|
|
|
|
|
};
|