import Box from "@mui/material/Box";
import {MainNav} from "../../components/navigation/MainNav";
import Container from "@mui/material/Container";

export function UserLayout({children}) {
    return (
        <Box
            sx={{
                bgcolor: 'var(--mui-palette-background-default)',
                display: 'flex',
                flexDirection: 'column',
                position: 'relative',
                minHeight: '100%',
            }}
        >
            <Box sx={{
                display: 'flex',
                flex: '1 1 auto',
                flexDirection: 'column',
            }}>
                <MainNav/>
                <Container maxWidth="xl" sx={{py: '16px'}}>
                    {children}
                </Container>
            </Box>
        </Box>
    )
}