Created the Header.jsx component
This commit is contained in:
parent
55736a3217
commit
4bb82b39ff
18
src/states/Dashboard/components/Header/Header.jsx
Normal file
18
src/states/Dashboard/components/Header/Header.jsx
Normal 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>
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user