diff --git a/desktop/src/app/AppBestiePopover.tsx b/desktop/src/app/AppBestiePopover.tsx new file mode 100644 index 0000000000..d07fb0f986 --- /dev/null +++ b/desktop/src/app/AppBestiePopover.tsx @@ -0,0 +1,7 @@ +import { BestieChatPopover } from "@/features/messages/ui/BestieChatPopover"; +import { useFeatureEnabled } from "@/shared/features"; + +export function AppBestiePopover({ hidden }: { hidden: boolean }) { + const bestieEnabled = useFeatureEnabled("bestie"); + return bestieEnabled ? : null; +} diff --git a/desktop/src/app/AppShell.tsx b/desktop/src/app/AppShell.tsx index ccc16202c1..dd8c54ae48 100644 --- a/desktop/src/app/AppShell.tsx +++ b/desktop/src/app/AppShell.tsx @@ -7,13 +7,12 @@ import { AppShellProvider } from "@/app/AppShellContext"; import { AppShellOverlays, TerminalBootstrap } from "@/app/AppShellOverlays"; import { AppShellChannelSurface } from "@/app/AppShellChannelSurface"; import { AppHuddleShell } from "@/app/AppHuddleShell"; +import { AppBestiePopover } from "@/app/AppBestiePopover"; import { AppTopChrome } from "@/app/AppTopChrome"; -import { BestieChatPopover } from "@/features/messages/ui/BestieChatPopover"; import { type TerminalContextOverride, TerminalContextOverrideProvider, } from "@/app/TerminalContextOverrideContext"; -import { useFeatureEnabled } from "@/shared/features"; import { useAppNavigation } from "@/app/navigation/useAppNavigation"; import { useBackForwardControls } from "@/app/navigation/useBackForwardControls"; import { useCommunityNavigationTransitions } from "@/app/useCommunityNavigationTransitions"; @@ -109,7 +108,6 @@ import { AppWorkflowEditorOverlayProvider } from "@/app/AppWorkflowEditorOverlay import { LazySettingsScreen } from "@/app/LazySettingsScreen"; const EMPTY_CHANNELS: Channel[] = []; export function AppShell() { - const bestieEnabled = useFeatureEnabled("bestie"); useWebviewZoomShortcuts(); useTauriWindowDrag(); useWebviewScrollBoundaryLock(); @@ -790,11 +788,7 @@ export function AppShell() { onGoForward={goForward} /> ) : null} - {bestieEnabled ? ( - - ) : null} +