import clsx from 'clsx' import Link from 'next/link' export const SiteLink = (props: { href: string children?: any onClick?: () => void className?: string }) => { const { href, children, onClick, className } = props return href.startsWith('http') ? ( { e.stopPropagation() if (onClick) onClick() }} > {children} ) : ( { e.stopPropagation() if (onClick) onClick() }} > {children} ) }