© 2026 Hedgehog Software, LLC
"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { type WpMenuItem } from "@nextwp/core"; import parser from "html-react-parser"; export default function NavMenu(props: { items: WpMenuItem[] }) { const { items } = props; const pathname = usePathname(); return ( <ul className="flex flex-row items-center justify-around"> {items?.map((item) => { return ( <li key={`${item.label}`} className="m-4"> <Link className={`${`${pathname}/` === `/${item.path}` ? "border-b-2 border-b-primary-gold-400" : ""} text-primary-gold-400`} href={`/${item.path}`} > {parser(`${item.label}`)} </Link> </li> ); })} </ul> ); }
News & Updates
News & Updates
Unsafe call of an
typed value.eslint@typescript-eslint/no-unsafe-call