"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { ChevronRight } from "lucide-react"; export function Breadcrumbs() { const pathname = usePathname(); const segments = pathname.split("/").filter(Boolean); const crumbs = [ { name: "Dashboard", href: "/dashboard" }, ...segments.slice(1).map((seg, i) => ({ name: seg.charAt(0).toUpperCase() + seg.slice(1), href: "/dashboard/" + segments.slice(1, i + 2).join("/"), })), ]; return ( ); }