import { ChevronRight } from 'lucide-react'; import React from 'react'; import { Box } from './Box'; import { Icon } from './Icon'; import { Link } from './Link'; import { Text } from './Text'; export interface BreadcrumbItem { label: string; href?: string; } export interface BreadcrumbsProps { items: BreadcrumbItem[]; } export const Breadcrumbs = ({ items }: BreadcrumbsProps) => { return ( {items.map((item, index) => { const isLast = index === items.length - 1; return ( {index > 0 && } {isLast || !item.href ? ( {item.label} ) : ( {item.label} )} ); })} ); };