// @mui
import Box from '@mui/material/Box';
// hooks
import { useBoolean } from 'src/hooks/use-boolean';
import { useResponsive } from 'src/hooks/use-responsive';
// components
import { useSettingsContext } from 'src/components/settings';
//
import Main from './main';
import Header from './header';
import NavMini from './nav-mini';
import NavVertical from './nav-vertical';
import NavHorizontal from './nav-horizontal';
// ----------------------------------------------------------------------
type Props = {
children: React.ReactNode;
};
export default function DashboardLayout({ children }: Props) {
const settings = useSettingsContext();
const lgUp = useResponsive('up', 'lg');
const nav = useBoolean();
const isHorizontal = settings.themeLayout === 'horizontal';
const isMini = settings.themeLayout === 'mini';
const renderNavMini = ;
const renderHorizontal = ;
const renderNavVertical = ;
if (isHorizontal) {
return (
<>
{lgUp ? renderHorizontal : renderNavVertical}
{children}
>
);
}
if (isMini) {
return (
<>
{lgUp ? renderNavMini : renderNavVertical}
{children}
>
);
}
return (
<>
{renderNavVertical}
{children}
>
);
}