import type { AnchorHTMLAttributes, ReactNode } from 'react'; import { FiExternalLink } from 'react-icons/fi'; export type ExtLinkProps = AnchorHTMLAttributes & { icon?: ReactNode | true | false; }; export function ExtLink({ className, icon = true, children, ...props }: ExtLinkProps) { return ( {children} {icon === true ? : icon} ); }