import Drawer from '@mui/material/Drawer'; import {useTheme} from '@mui/material/styles'; import Icon from '@mui/material/Icon'; import {useTranslation} from 'react-i18next'; import {useRouter} from 'next/router'; import DrawerMenuItem from './DrawerMenuItem'; const DrawerMenu = () => { const {t} = useTranslation(); const theme = useTheme(); const router = useRouter(); const { query: {uuid}, } = router; return ( { router.push(`/e/${uuid}`, null, {shallow: true}); }} Icon={directions_car} active={router.pathname == `/e/[uuid]`} /> { router.push(`/e/${uuid}/waitingList`, null, {shallow: true}); }} Icon={group} active={router.pathname == `/e/[uuid]/waitingList`} /> { router.push(`/e/${uuid}/details`, null, {shallow: true}); }} Icon={info} active={router.pathname == `/e/[uuid]/details`} /> ); }; export default DrawerMenu;