import React from 'react'; export interface AAttributes { charset?: string; className?: string; coords?: string; download?: string; hreflang?: string; media?: string; name?: string; rel?: | 'alternate' | 'author' | 'bookmark' | 'external' | 'help' | 'license' | 'next' | 'nofollow' | 'noreferrer' | 'noopener' | 'prev' | 'search' | 'tag'; rev?: string; shape?: 'default' | 'rect' | 'circle' | 'poly'; target?: '_blank' | '_parent' | '_self' | '_top'; type?: string; onClick?(ev: React.MouseEvent): void; } interface NewTabLinkProps extends AAttributes { href: string; content?: React.ReactElement | string | string[] | number; children?: React.ReactElement | string | string[] | number; } export class NewTabLink extends React.Component { public render() { const { content, children, ...rest } = this.props; return ( {content || children} ); } } export default NewTabLink;