import { Link } from 'react-router'; import NavigateNextIcon from '@mui/icons-material/NavigateNext'; import { Avatar, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemText } from '@mui/material'; import type { SvgIconProps } from '@mui/material'; interface ListMenuItemProps { icon: React.ComponentType; bgcolor?: string; label: string; text: string; to?: string; disabled?: boolean; } function RenderIcon({ icon: Icon, bgcolor, label, text }: ListMenuItemProps) { return ( <> ); } const LayoutMenuItem = ({ icon, bgcolor, label, text, to, disabled }: ListMenuItemProps) => ( <> {to && !disabled ? ( } > ) : ( )} ); export default LayoutMenuItem;