import Link from 'next/link' import { type MouseEvent, type PropsWithChildren } from 'react' import { cn } from 'ui' interface InlineLinkProps { href: string className?: string target?: string rel?: string title?: string onClick?: (e: MouseEvent) => void } export const InlineLinkClassName = 'underline transition underline-offset-2 decoration-foreground-lighter hover:decoration-foreground text-inherit hover:text-foreground' export const InlineLink = ({ href, className: _className, children, title, ...props }: PropsWithChildren) => { const className = cn(InlineLinkClassName, _className) if (href.startsWith('http')) { return ( {children} ) } return ( {children} ) }