import { makeStyles } from "@material-ui/core/styles"; import Typography, { TypographyProps } from "@material-ui/core/Typography"; import React from "react"; const useStyles = makeStyles({ link: { textDecoration: "none" } }); interface ExternalLinkProps extends React.HTMLProps { href: string; className?: string; typographyProps?: TypographyProps; } const ExternalLink: React.FC = props => { const { className, children, href, typographyProps, ...rest } = props; const classes = useStyles(props); return ( {children} ); }; ExternalLink.displayName = "ExternalLink"; export default ExternalLink;