import classNames from 'classnames'; import type { HTMLAttributes } from 'react'; import { Link as RouterLink } from 'react-router-dom'; import { Icon } from './Icon'; interface Props extends HTMLAttributes { href: string; } export function Link({ href, children, className, ...other }: Props) { const isExternal = href.match(/^https?:\/\//); className = classNames(className, 'relative underline hover:text-violet-600'); if (isExternal) { return ( {children} ); } return ( {children} ); } export function FeedbackLink() { return Feedback; }