'use client'; import { usePathname } from 'next/navigation'; import Link from 'next/link'; export function NavLink({ href, children }) { const pathname = usePathname(); const isActive = pathname === href || pathname.startsWith(href + '/'); return ( {children} ); } export function MobileNavLink({ href, children, onClick }) { const pathname = usePathname(); const isActive = pathname === href || pathname.startsWith(href + '/'); return ( {children} ); }