// Module ID: 10358 // Function ID: 10359 // Name: VoiceChatHooks // Dependencies: [502, 5113, 558, 576, 504, 2] // Exports: useIsConnectedToVoiceChannel // Module 10358 (VoiceChatHooks) import AuthenticationStore from "AuthenticationStore" /* 502 */; import VoiceStateStore from "VoiceStateStore" /* 5113 */; import ReactCompilerGating_mod from "ReactCompilerGating" /* 558 */; import size from "module_2" /* 2 */; const require = globalThis.__r; let _require; let ReactCompilerGating = ReactCompilerGating_mod; ReactCompilerGating.isReactCompilerEnabled(); ReactCompilerGating = ReactCompilerGating_mod; const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function useIsConnectedToVoiceChannelForId(arg0) { let closure_0; let first; let tmp7; _require = arg0; const obj = require("react"); const cResult = obj.c(3); const tmp = _require; if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) { const items = [VoiceStateStore, AuthenticationStore]; cResult[0] = items; 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; tmp7 = fn; } else { tmp7 = cResult[2]; } const tmpResult = tmp(504); return tmpResult.useStateFromStores(first, tmp7); }) : (function useIsConnectedToVoiceChannelForId(arg0) { let closure_0; _require = arg0; const items = [VoiceStateStore, AuthenticationStore]; const obj = require("get initialized"); return obj.useStateFromStores(items, () => VoiceStateStore.isInChannel(closure_0, AuthenticationStore.getId())); }); let closure_4 = tmp3; function useIsConnectedToVoiceChannel(id) { id = undefined; const tmp = closure_4; if (id != null) { id = id.id; } return tmp(id); } const result1 = size.fileFinishedImporting("modules/voice_chat/VoiceChatHooks.tsx"); export { useIsConnectedToVoiceChannel }; export const useIsConnectedToVoiceChannelForId = tmp3;