import React, { FC } from 'react'; import { Link, useRouteMatch } from 'react-router-dom'; import { ListItem, ListItemIcon, ListItemText } from '@material-ui/core'; type ListItemLinkProps = { icon: React.ReactElement; primary: string; to: string; }; const ListItemLink: FC = ({ icon, primary, to }) => { const match = useRouteMatch(to); return ( {icon} ); }; export default ListItemLink;