"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { cn } from "@/lib/utils" import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area" const examples = [ { name: "Dashboard", href: "/examples/dashboard", }, { name: "Cards", href: "/examples/cards", }, { name: "Playground", href: "/examples/playground", }, { name: "Music", href: "/examples/music", }, { name: "Authentication", href: "/examples/authentication", }, ] interface ExamplesNavProps extends React.HTMLAttributes {} export function ExamplesNav({ className, ...props }: ExamplesNavProps) { const pathname = usePathname() return (
{examples.map((example) => ( {example.name} ))}
) }