import { ListItem, ListItemButton, ListItemIcon, ListItemText } from '@mui/material'; import { grey } from '@mui/material/colors'; import { Link, useLocation } from 'react-router-dom'; import type { SvgIconProps } from '@mui/material'; import type { FC } from 'react'; import { routeMatches } from 'utils'; interface LayoutMenuItemProps { icon: React.ComponentType; label: string; to: string; disabled?: boolean; } const LayoutMenuItem: FC = ({ icon: Icon, label, to, disabled }) => { const { pathname } = useLocation(); const selected = routeMatches(to, pathname); return ( {label} ); }; export default LayoutMenuItem;