frontPanel/src/pages/main.tsx
2023-03-02 01:59:51 +03:00

30 lines
780 B
TypeScript

import Header from '../ui_kit/Header';
import Sidebar from '../ui_kit/sidebarCreateQuize';
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%',
padding: '25px'
}}
>
<Outlet />
</Box>
</Box>
</>
)
}