"use client"; import * as React from "react"; import { usePathname } from "next/navigation"; import { siteConfig } from "@/config/siteConfig"; import { BreadcrumbsItem } from "./BreadcrumbsItem"; export function Breadcrumbs({ path }: { path: string[] }) { const pathname = usePathname(); const pathnamePath = pathname.split("/").filter(Boolean).slice(0, -1); if (!path?.length && !pathnamePath?.length) { return null; } return ( ); }