decord/beta/source/modules/voice_chat/VoiceChatHooks.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

54 lines
1.6 KiB
TypeScript

// Module ID: 9640
// Function ID: 9641
// Name: VoiceChatHooks
// Dependencies: [502, 4777, 558, 568, 504, 2]
// Exports: useIsConnectedToVoiceChannel
// Module 9640 (VoiceChatHooks)
import AuthenticationStore from "AuthenticationStore" /* 502 */;
import VoiceStateStore from "VoiceStateStore" /* 4777 */;
const require = fn;
let ReactCompilerGating = fn(558);
ReactCompilerGating.isReactCompilerEnabled();
ReactCompilerGating = fn(558);
const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
_require = arg0;
const cResult = require("c").c(3);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [VoiceStateStore, AuthenticationStore];
cResult[0] = items;
let first = items;
} else {
first = cResult[0];
}
if (cResult[1] !== arg0) {
const fn = function c() {
return VoiceStateStore.isInChannel(closure_0, AuthenticationStore.getId());
};
cResult[1] = arg0;
cResult[2] = fn;
let tmp7 = fn;
} else {
tmp7 = cResult[2];
}
const obj = require("c");
return require("initialize").useStateFromStores(first, tmp7);
}) : ((arg0) => {
_require = arg0;
const items = [VoiceStateStore, AuthenticationStore];
return require("initialize").useStateFromStores(items, () => VoiceStateStore.isInChannel(closure_0, AuthenticationStore.getId()));
});
let closure_4 = tmp3;
fn = (id) => {
id = undefined;
if (id != null) {
id = id.id;
}
return closure_4(id);
};
const size = fn(2);
const result1 = size.fileFinishedImporting("modules/voice_chat/VoiceChatHooks.tsx");
export const useIsConnectedToVoiceChannel = fn;
export const useIsConnectedToVoiceChannelForId = tmp3;