2023-05-10 11:40:39 +00:00
|
|
|
import Header from '@ui_kit/Header/Header';
|
2023-03-10 01:38:31 +00:00
|
|
|
import Sidebar from '@ui_kit/Sidebar';
|
2023-03-01 22:59:51 +00:00
|
|
|
import Box from '@mui/material/Box';
|
|
|
|
import {Outlet} from "react-router-dom";
|
|
|
|
import {useTheme} from "@mui/material";
|
|
|
|
|
|
|
|
|
|
|
|
export default function Main () {
|
|
|
|
const theme = useTheme();
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Header isLoggedIn={true}/>
|
|
|
|
<Box sx={{
|
|
|
|
display: 'flex'
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<Sidebar />
|
|
|
|
<Box
|
|
|
|
sx={{
|
|
|
|
background: theme.palette.background.default,
|
|
|
|
width: '100%',
|
2023-03-22 22:49:51 +00:00
|
|
|
padding: '25px',
|
2023-03-22 22:56:18 +00:00
|
|
|
height: 'calc(100vh - 80px)',
|
2023-03-22 22:58:18 +00:00
|
|
|
overflow: 'auto',
|
|
|
|
boxSizing: "border-box"
|
2023-03-01 22:59:51 +00:00
|
|
|
}}
|
|
|
|
>
|
|
|
|
<Outlet />
|
|
|
|
</Box>
|
|
|
|
</Box>
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|