import cx from "classnames"; import React from "react"; type HeadingTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; export interface TimelineItem { description: React.ReactNode; label?: React.ReactNode; title: React.ReactNode; } export interface TimelineProps extends React.OlHTMLAttributes { items: TimelineItem[]; titleTag?: HeadingTag; } const CLASS_ROOT = "timeline"; const Timeline: React.FC = ({ items, className, start = 1, titleTag: TitleTag = "h3", ...other }) => { return (
    {items.map((item, index) => { const itemNumber = start + index; const label = item.label ?? null; return (
  1. ); })}
); }; Timeline.displayName = "Timeline"; export { Timeline };