"use client"; import { usePathname } from "next/navigation"; import Link from "next/link"; import { ChevronRight } from "lucide-react"; import { cn } from "@app/lib/cn"; interface BreadcrumbItem { label: string; href: string; } export function Breadcrumbs() { const pathname = usePathname(); const segments = pathname.split("/").filter(Boolean); const breadcrumbs: BreadcrumbItem[] = segments.map((segment, index) => { const href = `/${segments.slice(0, index + 1).join("/")}`; let label = decodeURIComponent(segment); return { label, href }; }); return ( ); }