import type { VFC } from 'react'; import { Link } from 'react-router-dom'; import { Divider, Drawer, styled } from '@mui/material'; import { ReactComponent as UnleashLogo } from 'assets/img/logoDarkWithText.svg'; import { ReactComponent as UnleashLogoWhite } from 'assets/img/logoWithWhiteText.svg'; import styles from './DrawerMenu.module.scss'; // FIXME: useStyle - theme import theme from 'themes/theme'; import { ThemeMode } from 'component/common/ThemeMode/ThemeMode'; import { MobileNavigationSidebar } from 'component/layout/MainLayout/NavigationSidebar/MobileNavigationSidebar'; import { NewInUnleash } from 'component/layout/MainLayout/NavigationSidebar/NewInUnleash/NewInUnleash'; import { AdminMobileNavigation } from 'component/layout/MainLayout/AdminMenu/AdminNavigationItems'; import { useNewAdminMenu } from 'hooks/useNewAdminMenu'; const StyledDrawerHeader = styled('div')(({ theme }) => ({ display: 'flex', alignItems: 'center', justifyContent: 'start', '& svg': { width: '100%', height: '100%', maxHeight: theme.spacing(8), padding: theme.spacing(0.5), }, })); interface IDrawerMenuProps { title?: string; open?: boolean; toggleDrawer: () => void; } export const DrawerMenu: VFC = ({ open = false, toggleDrawer, }) => { const { showOnlyAdminMenu } = useNewAdminMenu(); const onClick = () => { toggleDrawer(); }; return ( ); };