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 (
{
e.stopPropagation()
if (onClick) onClick()
}}
>
{children}
)
}
function MaybeLink(props: { href: string; children: React.ReactNode }) {
const { href, children } = props
return href.startsWith('http') ? (
<>{children}>
) : (
{children}
)
}