import React from "react" import { ListItem, ListItemIcon, ListItemText } from "@mui/material" import { Link as RouterLink, useLocation, } from "react-router-dom" interface IListItemLinkProps { to: string primary: React.ReactNode icon?: React.ReactNode default?: boolean } export function ListItemLink(props: IListItemLinkProps) { const { icon, primary, to } = props const location = useLocation(); const renderLink = React.useMemo( () => React.forwardRef(function Link(itemProps, ref) { return }), [to], ) return (
  • {icon ? {icon} : null}
  • ) }