"use client" import { Logo } from "@ui/assets/Logo" import { cn } from "@lib/utils" import { ChevronRight, Cog, Home, LayoutGrid, SearchIcon } from "lucide-react" import Link from "next/link" import { usePathname } from "next/navigation" const LINKS = [ { href: "/", label: "Home", icon: Home }, { href: "/settings", label: "Settings", icon: Cog }, ] as const export function AppNav() { const pathname = usePathname() const openSearch = () => { window.dispatchEvent(new Event("supermemory:open-search")) } return (
My
supermemory
{LINKS.map(({ href, label, icon: Icon }) => { const active = pathname === href return ( {label} ) })}
) }