"use client" import Link from "next/link" import {usePathname} from "next/navigation" export default function NavLink(props){ const pathname = usePathname() const active = pathname === props.path return( {props.text} ) }