--- import './breadcrumbs.css'; type Props = { segments: { label: string; segment: string; }[]; separator?: string; }; const { segments, separator = '>' } = Astro.props; const breadcrumbs = segments.map(({ label }, index) => { const path = segments .slice(0, index + 1) .map(({ segment }) => segment) .join('/') .replaceAll('//', '/'); return { label, path, }; }); ---