import Link from 'next/link'
export const CustomLink = ({
href,
children,
className,
}: {
href?: string
children: React.ReactNode
className?: string
}) => {
if (!href) return <>{children}>
// If href is internal, use Next.js Link
if (href.startsWith('/')) {
return (
{children}
)
}
// For external links, fall back to
return (
{children}
)
}