frontPanel/src/pages/main.tsx

31 lines
806 B
TypeScript
Raw Normal View History

import Header from '@ui_kit/Header';
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%',
padding: '25px',
height: '100vh'
2023-03-01 22:59:51 +00:00
}}
>
<Outlet />
</Box>
</Box>
</>
)
}