2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 8963
|
|
|
|
|
// Function ID: 8964
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: VoicePanelUtils
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [2045, 4859, 5044, 563, 2]
|
2026-09-26 17:57:22 +00:00
|
|
|
// Exports: useIsAnyVoicePanelOpen, useIsVoicePanelFullscreen, useIsVoicePanelMounted, useIsVoicePanelOpen, useIsVoicePanelShowing
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 8963 (VoicePanelUtils)
|
2026-09-26 17:57:22 +00:00
|
|
|
import useStateFromStores from "useStateFromStores" /* 563 */;
|
2026-09-28 16:18:32 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 2045 */;
|
|
|
|
|
import RTCConnectionStore from "RTCConnectionStore" /* 4859 */;
|
|
|
|
|
import VoicePanelStore from "VoicePanelStore" /* 5044 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
require = fn;
|
2026-09-26 17:57:22 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/voice_panel/VoicePanelUtils.native.tsx");
|
|
|
|
|
|
|
|
|
|
export const useIsVoicePanelShowing = function useIsVoicePanelShowing() {
|
2026-09-18 19:45:33 +00:00
|
|
|
const items = [ChannelStore, RTCConnectionStore];
|
|
|
|
|
return useStateFromStores.useStateFromStores(items, () => {
|
|
|
|
|
channel = channel.getChannel(channelId.getChannelId());
|
2026-09-21 13:40:21 +00:00
|
|
|
return null != channel && !channel.isGuildStageVoice();
|
2026-09-18 19:45:33 +00:00
|
|
|
});
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|
|
|
|
|
export const useIsVoicePanelFullscreen = function useIsVoicePanelFullscreen() {
|
|
|
|
|
return VoicePanelStore((isVoicePanelFullscreen) => isVoicePanelFullscreen.isVoicePanelFullscreen());
|
|
|
|
|
};
|
|
|
|
|
export const useIsVoicePanelOpen = function useIsVoicePanelOpen(channelId) {
|
|
|
|
|
closure_0 = channelId;
|
2026-09-18 19:45:33 +00:00
|
|
|
return VoicePanelStore((isChannelOpen) => isChannelOpen.isChannelOpen(closure_0));
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|
|
|
|
|
export const useIsAnyVoicePanelOpen = function useIsAnyVoicePanelOpen() {
|
|
|
|
|
return VoicePanelStore((isAnyVoicePanelOpen) => isAnyVoicePanelOpen.isAnyVoicePanelOpen());
|
|
|
|
|
};
|
|
|
|
|
export const useIsVoicePanelMounted = function useIsVoicePanelMounted(channelId) {
|
|
|
|
|
closure_0 = channelId;
|
2026-09-18 19:45:33 +00:00
|
|
|
return VoicePanelStore((isMounted) => isMounted.isMounted(closure_0));
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|