import { Divider, Drawer, List, ListItem, Box } from '@material-ui/core'; import { makeStyles, createStyles } from '@material-ui/core/styles'; import DashboardIcon from '@material-ui/icons/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'; interface DrawerProps { open: boolean; setOpen: Dispatch>; } const useStyles = makeStyles(() => createStyles({ list: { width: '200px', }, divider: { background: DIVIDER, }, text: { paddingTop: '.5em', paddingLeft: '1.5em', }, dashboardButton: { paddingLeft: '.1em', }, dashboardIcon: { fontSize: '2.3em', color: GREY, }, }), ); const AnvilDrawer = ({ open, setOpen }: DrawerProps): JSX.Element => { const classes = useStyles(); return ( setOpen(!open)} >
{ICONS.map( (icon): JSX.Element => ( ), )}
); }; export default AnvilDrawer;