'use client'
import Link from 'next/link'
import { usePathname } from 'next/navigation'
import { cn } from '@/lib/utils'
type NavItem = { href: string; label: string }
const mainNav: NavItem[] = [
{ href: '/', label: 'Home' },
{ href: '/blog', label: 'Blog' },
{ href: '/#about', label: 'About' },
{ href: '/#contact', label: 'Contact' },
]
function NavLink({ href, label }: NavItem) {
const pathname = usePathname()
const isActive =
href === '/'
? pathname === '/'
: pathname.startsWith(href.replace('/#', '/'))
return (
{label}
)
}
export function Navbar() {
return (
N
)
}