"use client"; import { ProtoLogoMark } from "@prototype/components/brand/proto-logo-mark"; import { useTrackEvent } from "@prototype/lib/prototypes/telemetry/prototype-telemetry-context"; import { cn } from "@prototype/lib/utils"; import { LayoutGrid, LibraryBig, ScrollText, Settings } from "lucide-react"; import Link from "next/link"; import { usePathname } from "next/navigation"; const GALLERY_NAV_ITEMS = [ { href: "/", label: "Prototypes", icon: LayoutGrid, }, { href: "/design-system", label: "Design system", icon: LibraryBig, }, { href: "/agent-instructions", label: "Agent instructions", icon: ScrollText, }, ] as const; const GALLERY_NAV_ITEM_CLASS = "flex cursor-pointer items-center gap-2.5 rounded-md px-3 py-2 text-sm font-medium transition-colors text-[var(--tool-chrome-text-muted)] hover:bg-[var(--tool-chrome-gray-highlight)] hover:text-[var(--tool-chrome-text-heading)]"; type PrototypeGalleryNavProps = { sourceDirectoryName?: string; sourcePath?: string; }; export function PrototypeGalleryNav(_props: PrototypeGalleryNavProps = {}) { const pathname = usePathname(); const track = useTrackEvent(); const isSettingsActive = pathname === "/settings" || pathname.startsWith("/settings/"); return ( ); }