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