decord/alpha/source/modules/voice_panel/VoicePanelUtils.native.tsx
github-actions 97fd043558 chore: update source for alpha 347.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
2026-09-19 06:52:51 +00:00

37 lines
1.6 KiB
TypeScript

// Module ID: 9769
// Function ID: 9770
// Name: VoicePanelUtils
// Dependencies: [2041, 4779, 4964, 563, 2]
// Exports: useIsAnyVoicePanelOpen, useIsVoicePanelFullscreen, useIsVoicePanelMounted, useIsVoicePanelOpen, useIsVoicePanelShowing
// Module 9769 (VoicePanelUtils)
import useStateFromStores from "useStateFromStores" /* 563 */;
import ChannelStore from "ChannelStore" /* 2041 */;
import RTCConnectionStore from "RTCConnectionStore" /* 4779 */;
import VoicePanelStore from "VoicePanelStore" /* 4964 */;
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/voice_panel/VoicePanelUtils.native.tsx");
export const useIsVoicePanelShowing = function useIsVoicePanelShowing() {
const items = [ChannelStore, RTCConnectionStore];
return useStateFromStores.useStateFromStores(items, () => {
channel = channel.getChannel(channelId.getChannelId());
return null != channel && !channel.isGuildStageVoice();
});
};
export const useIsVoicePanelFullscreen = function useIsVoicePanelFullscreen() {
return VoicePanelStore((isVoicePanelFullscreen) => isVoicePanelFullscreen.isVoicePanelFullscreen());
};
export const useIsVoicePanelOpen = function useIsVoicePanelOpen(channelId) {
closure_0 = channelId;
return VoicePanelStore((isChannelOpen) => isChannelOpen.isChannelOpen(closure_0));
};
export const useIsAnyVoicePanelOpen = function useIsAnyVoicePanelOpen() {
return VoicePanelStore((isAnyVoicePanelOpen) => isAnyVoicePanelOpen.isAnyVoicePanelOpen());
};
export const useIsVoicePanelMounted = function useIsVoicePanelMounted(channelId) {
closure_0 = channelId;
return VoicePanelStore((isMounted) => isMounted.isMounted(closure_0));
};