frontPanel/src/pages/main.tsx

30 lines
765 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%',
2023-03-22 22:19:15 +00:00
padding: '25px'
2023-03-01 22:59:51 +00:00
}}
>
<Outlet />
</Box>
</Box>
</>
)
}