add header and sidebar sample
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user