"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import {ChevronRightIcon} from "lucide-react"; export function BreadcrumbsItem({ label, isLast, href, }: { label: string; isLast: boolean; href?: string; }) { const pathname = usePathname(); if (!label) { return null; } let wrappedLabel = {label}; if (!isLast && href && href !== pathname) { wrappedLabel = ( {wrappedLabel} ); } return (