import { Link } from "react-router" interface Props { to: string onClick: React.MouseEventHandler img: string text: string subtext?: string } export default function SearchResultItem(props: Props) { return ( {props.text}
{props.text} {props.subtext ? <>
{props.subtext} : ''}
) }