add header and sidebar sample

This commit is contained in:
AmirHossein Mahmoodi
2024-01-30 12:15:26 +03:30
parent f883b9cc8e
commit 21c5e5919b
3 changed files with 116 additions and 6 deletions

View File

@@ -1,11 +1,20 @@
import {Stack} from "@mui/material";
import HeaderWithLogo from "@/components/layouts/dashboard/headerWithLogo";
import HeaderWithSidebar from "@/components/layouts/dashboard/headerWithSidebar";
const headerHeight = {
header1: 50,
header2: 50
}
const offsetHeaders = headerHeight.header1 + headerHeight.header2
const Template = ({children}) => {
return (
<>
header
sidebar
return (<Stack>
<HeaderWithLogo headerHeight={headerHeight}/>
<HeaderWithSidebar offsetHeaders={offsetHeaders}>
{children}
</>
)
</HeaderWithSidebar>
</Stack>)
}
export default Template