decord/source/modules/voice_chat/VoiceChatHooks.tsx

30 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 9562
// Function ID: 9563
// Name: VoiceChatHooks
// Dependencies: [502, 4625, 504, 2]
2026-07-29 08:29:29 +00:00
// Exports: useIsConnectedToVoiceChannel, useIsConnectedToVoiceChannelForId
2026-07-20 16:05:17 +00:00
// Module 9562 (VoiceChatHooks)
import AuthenticationStore from "AuthenticationStore" /* 502 */;
import VoiceStateStore from "VoiceStateStore" /* 4625 */;
2026-07-23 10:11:24 +00:00
const require = globalThis.__r;
const require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/voice_chat/VoiceChatHooks.tsx");
2026-07-20 16:05:17 +00:00
export const useIsConnectedToVoiceChannel = function useIsConnectedToVoiceChannel(id) {
id = undefined;
2026-07-29 08:29:29 +00:00
if (id != null) {
2026-07-20 16:05:17 +00:00
id = id.id;
}
const items = [VoiceStateStore, AuthenticationStore];
return id(504).useStateFromStores(items, () => VoiceStateStore.isInChannel(id, AuthenticationStore.getId()));
2026-07-29 08:29:29 +00:00
};
export const useIsConnectedToVoiceChannelForId = function useIsConnectedToVoiceChannelForId(arg0) {
_require = arg0;
const items = [VoiceStateStore, AuthenticationStore];
return require("initialize").useStateFromStores(items, () => VoiceStateStore.isInChannel(id, AuthenticationStore.getId()));
2026-07-20 16:05:17 +00:00
};