// Module ID: 8963 // Function ID: 8964 // Name: VoicePanelUtils // Dependencies: [2045, 4859, 5044, 563, 2] // Exports: useIsAnyVoicePanelOpen, useIsVoicePanelFullscreen, useIsVoicePanelMounted, useIsVoicePanelOpen, useIsVoicePanelShowing // Module 8963 (VoicePanelUtils) import useStateFromStores from "useStateFromStores" /* 563 */; import ChannelStore from "ChannelStore" /* 2045 */; import RTCConnectionStore from "RTCConnectionStore" /* 4859 */; import VoicePanelStore from "VoicePanelStore" /* 5044 */; 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)); };