import React from 'react' import classnames from 'classnames' import { LinkIcon } from '../Icons/LinkIcon' export enum LinkTheme { default = 'text-inverse hover:text-highlight-1', accent = 'text-highlight-1 hover:text-inverse', light = 'text-accent-1 hover:text-highlight-1' } export const ExternalLink: React.FC<{ children: React.ReactNode href: string theme?: LinkTheme underline?: boolean openInSameTab?: boolean title?: string noIcon?: boolean className?: string displayClassName?: string colorClassName?: string iconClassName?: string }> = (props) => { return ( {props.children} {!props.openInSameTab && !props.noIcon && } ) } ExternalLink.defaultProps = { underline: false, noIcon: false, iconClassName: 'w-4 h-4 ml-1 mb-1', openInSameTab: false, theme: LinkTheme.default, displayClassName: 'inline-block h-fit-content items-center' }