import { Box, Divider, Drawer, List, ListItem } from '@mui/material'; import { styled } from '@mui/material/styles'; import DashboardIcon from '@mui/icons-material/Dashboard'; import { Dispatch, SetStateAction } from 'react'; import { BodyText, HeaderText } from './Text'; import { ICONS, ICON_SIZE } from '../lib/consts/ICONS'; import { DIVIDER, GREY } from '../lib/consts/DEFAULT_THEME'; import API_BASE_URL from '../lib/consts/API_BASE_URL'; const PREFIX = 'AnvilDrawer'; const classes = { list: `${PREFIX}-list`, divider: `${PREFIX}-divider`, text: `${PREFIX}-text`, dashboardButton: `${PREFIX}-dashboardButton`, dashboardIcon: `${PREFIX}-dashboardIcon`, }; const StyledDrawer = styled(Drawer)(() => ({ [`& .${classes.list}`]: { width: '200px', }, [`& .${classes.divider}`]: { backgroundColor: DIVIDER, }, [`& .${classes.text}`]: { paddingTop: '.5em', paddingLeft: '1.5em', }, [`& .${classes.dashboardButton}`]: { paddingLeft: '.1em', }, [`& .${classes.dashboardIcon}`]: { fontSize: '2.3em', color: GREY, }, })); interface DrawerProps { open: boolean; setOpen: Dispatch>; } const AnvilDrawer = ({ open, setOpen }: DrawerProps): JSX.Element => ( setOpen(!open)} >
{ICONS.map( (icon): JSX.Element => ( ), )}
); export default AnvilDrawer;