Created the Dashboard.jsx state

This commit is contained in:
Mathias Wagner 2023-07-30 20:46:27 +02:00
parent 631fff3711
commit 3acf750ae6
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -0,0 +1,19 @@
import {Box, Toolbar} from "@mui/material";
import {Outlet} from "react-router-dom";
import Header from "@/states/Dashboard/components/Header";
import Sidebar from "@/states/Dashboard/components/Sidebar";
const drawerWidth = 240;
export const Dashboard = () => {
return (
<Box sx={{display: "flex", overflow: "hidden"}}>
<Header />
<Sidebar />
<Box component="main" sx={{flexGrow: 1, p: 3, ml: {sm: `${drawerWidth}px`}}}>
<Toolbar/>
<Outlet />
</Box>
</Box>
)
}