decord/source/modules/voice_chat/VoiceChatHooks.tsx

27 lines
1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 8712
// Function ID: 8713
2026-07-29 08:29:29 +00:00
// Name: useIsConnectedToVoiceChannel
2026-08-24 06:08:38 +00:00
// Dependencies: [1218, 4547, 589, 2]
2026-07-29 08:29:29 +00:00
// Exports: useIsConnectedToVoiceChannel, useIsConnectedToVoiceChannelForId
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 8712 (useIsConnectedToVoiceChannel)
import closure_2 from "fetchFingerprint" /* 1218 */;
import closure_3 from "updateVoiceState" /* 4547 */;
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_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;
}
2026-08-24 06:08:38 +00:00
const items = [closure_3, closure_2];
return id(589).useStateFromStores(items, () => closure_1_3.isInChannel(id, closure_1_2.getId()));
2026-07-29 08:29:29 +00:00
};
export const useIsConnectedToVoiceChannelForId = function useIsConnectedToVoiceChannelForId(arg0) {
const _require = arg0;
2026-08-24 06:08:38 +00:00
const items = [closure_3, closure_2];
return _require(589).useStateFromStores(items, () => closure_1_3.isInChannel(id, closure_1_2.getId()));
2026-07-20 16:05:17 +00:00
};