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