import Typography, { TypographyProps } from "@material-ui/core/Typography"; import makeStyles from "@material-ui/styles/makeStyles"; import React from "react"; const useStyles = makeStyles({ link: { textDecoration: "none" } }); interface ExternalLinkProps extends React.HTMLProps { 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;