Created the Header.jsx component

This commit is contained in:
Mathias Wagner 2023-07-30 20:45:38 +02:00
parent 55736a3217
commit 4bb82b39ff
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -0,0 +1,18 @@
import {AppBar, IconButton, Toolbar, Typography} from "@mui/material";
import {Menu} from "@mui/icons-material";
const drawerWidth = 240;
export const Header = () => {
return (
<AppBar position="fixed" sx={{width: { sm: `calc(100% - ${drawerWidth}px)` }, ml: { sm: `${drawerWidth}px` }}}>
<Toolbar>
<IconButton color="inherit" aria-label="open drawer" edge="start" onClick={() => {}}
sx={{ mr: 2, display: { sm: 'none' } }}>
<Menu />
</IconButton>
<Typography variant="h6" noWrap>Home</Typography>
</Toolbar>
</AppBar>
)
}