import { Icon } from '../../icons'; import type { FC, ReactNode } from 'react'; import styles from './ExternalLink.module.css'; export interface ExternalLinkProps { href: string, target?: string, children: ReactNode, } export const ExternalLink: FC = ({ href, target = '_blank', children }) => { // the `​` in combination with `white-space: nowrap` on `.icon` prevents wrapping // between the link content and the icon, but still allows wrapping within the content. return ( {children} ); };