import type { ReactNode } from "react"; export type TimeLineItem = { id: string; title: ReactNode; dateTime: string; dateLabel: string; meta?: ReactNode; content?: ReactNode; }; /** Secuencia vertical: el consumidor aporta orden, fechas formateadas y contenido de cada evento. */ export function TimeLine({ items, label, emptyMessage, }: { items: readonly TimeLineItem[]; label: string; emptyMessage: string; }) { if (items.length === 0) { return (

{emptyMessage}

); } return (
    {items.map((item, index) => (
  1. {index < items.length - 1 && (
  2. ))}
); }