--- import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from '@/components/ui/breadcrumb' import { Icon } from 'astro-icon/components' export interface BreadcrumbItem { href?: string label: string icon?: string } interface Props { items: BreadcrumbItem[] } const { items } = Astro.props --- { items.map((item, index) => ( <> {index === items.length - 1 ? ( {item.icon && } {item.label} ) : ( {item.icon && } {item.label} )} )) }