2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 9156
|
|
|
|
|
// Function ID: 9157
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: VoicePanelUtils
|
2026-10-01 06:55:13 +00:00
|
|
|
// Dependencies: [2044, 4868, 5053, 563, 2]
|
2026-09-19 06:52:51 +00:00
|
|
|
// Exports: useIsAnyVoicePanelOpen, useIsVoicePanelFullscreen, useIsVoicePanelMounted, useIsVoicePanelOpen, useIsVoicePanelShowing
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 9156 (VoicePanelUtils)
|
2026-09-10 05:38:07 +00:00
|
|
|
import useStateFromStores from "useStateFromStores" /* 563 */;
|
2026-10-01 06:55:13 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 2044 */;
|
|
|
|
|
import RTCConnectionStore from "RTCConnectionStore" /* 4868 */;
|
|
|
|
|
import VoicePanelStore from "VoicePanelStore" /* 5053 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const size = fn(2);
|
2026-09-19 06:52:51 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/voice_panel/VoicePanelUtils.native.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const useIsVoicePanelShowing = function useIsVoicePanelShowing() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const items = [ChannelStore, RTCConnectionStore];
|
|
|
|
|
return useStateFromStores.useStateFromStores(items, () => {
|
2026-07-29 08:29:29 +00:00
|
|
|
channel = channel.getChannel(channelId.getChannelId());
|
2026-09-19 06:52:51 +00:00
|
|
|
return null != channel && !channel.isGuildStageVoice();
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
export const useIsVoicePanelFullscreen = function useIsVoicePanelFullscreen() {
|
2026-09-10 05:38:07 +00:00
|
|
|
return VoicePanelStore((isVoicePanelFullscreen) => isVoicePanelFullscreen.isVoicePanelFullscreen());
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const useIsVoicePanelOpen = function useIsVoicePanelOpen(channelId) {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = channelId;
|
2026-09-10 05:38:07 +00:00
|
|
|
return VoicePanelStore((isChannelOpen) => isChannelOpen.isChannelOpen(closure_0));
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const useIsAnyVoicePanelOpen = function useIsAnyVoicePanelOpen() {
|
2026-09-10 05:38:07 +00:00
|
|
|
return VoicePanelStore((isAnyVoicePanelOpen) => isAnyVoicePanelOpen.isAnyVoicePanelOpen());
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const useIsVoicePanelMounted = function useIsVoicePanelMounted(channelId) {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = channelId;
|
2026-09-10 05:38:07 +00:00
|
|
|
return VoicePanelStore((isMounted) => isMounted.isMounted(closure_0));
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|