import { Suspense } from 'react'; import { Outlet } from 'react-router'; import { ModalLoader } from '@/components/Modal'; import { useAppLayoutStore, useMainHeight, useViewportHeight } from '@/stores/appLayout'; import { globals } from '@/utils/constants'; import { NavigationState } from './Navigation/NavigationContext'; import { Footer } from './Footer'; import { GlobalDialogs } from './GlobalDialogs'; import { GlobalLoader } from './GlobalLoader'; import { ToasterThemed } from './GlobalToaster'; import { GlobalTooltips } from './GlobalTooltips'; import { MutationErrors } from './MutationErrors'; import { Navigation } from './Navigation'; export function ApplicationLayout() { const mainHeight = useMainHeight(); const viewportHeight = useViewportHeight(); const showScroll = useAppLayoutStore(state => !state.noScroll); const noNavigationAnimation = useAppLayoutStore(state => state.noNavigationAnimation); const noNavigation = useAppLayoutStore(state => state.noNavigation); const noFooter = useAppLayoutStore(state => state.noFooter); return (
}>
{!noNavigation && !noFooter ?
); }