// @mui import Box, { BoxProps } from '@mui/material/Box'; // hooks import { useResponsive } from 'src/hooks/use-responsive'; // components import { useSettingsContext } from 'src/components/settings'; // import { HEADER, NAV } from '../config-layout'; // ---------------------------------------------------------------------- const SPACING = 8; export default function Main({ children, sx, ...other }: BoxProps) { const settings = useSettingsContext(); const lgUp = useResponsive('up', 'lg'); const isNavHorizontal = settings.themeLayout === 'horizontal'; const isNavMini = settings.themeLayout === 'mini'; if (isNavHorizontal) { return ( {children} ); } return ( {children} ); }