import { Drawer, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Toolbar, Typography, Divider } from '@mui/material';
import { Link } from 'react-router-dom'
import ChecklistIcon from '@mui/icons-material/Checklist';
import InfoIcon from '@mui/icons-material/Info';
const drawerWidth = 240;
export default function SideMenu() {
return (
<Drawer
sx={{
width: drawerWidth,
flexShrink: 0,
'& .MuiDrawer-paper': {
width: drawerWidth,
boxSizing: 'border-box',
},
}}
variant="permanent"
anchor="left"
className='sideMenu'
>
<Toolbar>
<Typography variant="h6">Items</Typography>
</Toolbar>
<Divider />
<List>
<ListItem disablePadding component={Link} to="/">
<ListItemButton>
<ListItemIcon>
<ChecklistIcon />
</ListItemIcon>
<ListItemText primary="Items" />
</ListItemButton>
</ListItem>
<ListItem disablePadding component={Link} to="/about">
<ListItemButton>
<ListItemIcon>
<InfoIcon />
</ListItemIcon>
<ListItemText primary="About" />
</ListItemButton>
</ListItem>
</List>
</Drawer>
)
}
|