import { MouseEventHandler } from "react"; import Icon, { GLYPHS } from "../../Styled/Icon"; import Styles from "./mobile-menu-item.scss"; type Props = { href?: string; onClick: MouseEventHandler; caption: string; icon: { id: keyof typeof GLYPHS }; }; const MobileMenuItem = (props: Props) => (
{props.href ? ( {props.caption} {props.href !== "#" && } ) : ( )}
); export default MobileMenuItem;