"use client" import Link from "next/link"; import { usePathname } from "next/navigation"; import { ComponentProps } from "react"; import clsx from "clsx"; function NavLink(props: ComponentProps<"div"> & { href: string }) { return (

{props.children}

) } export default function Navlinks(props: ComponentProps<"div">) { const pathname = usePathname() const links = [ { link: "/story", label: "STORIES" }, { link: "/publication", label: "PUBLICATIONS" }, { link: "/submission", label: "SUBMISSIONS" }, ] return ( <> {links.map(e => ({e.label})) } ) }