import { Check, Loader } from "lucide-react"; import { cls } from "@/lib/utils"; type Item = { label: string; detail: string }; const DELAYS = [ ["delay-150", "delay-200", "delay-[250ms]"], ["delay-[350ms]", "delay-[400ms]", "delay-[450ms]"], ["delay-[550ms]", "delay-[600ms]", "delay-[650ms]"], ]; const ChecklistTimeline = ({ heading, subheading, items, completedLabel }: { heading: string; subheading: string; items: [Item, Item, Item]; completedLabel: string }) => (
{[1, 0.8, 0.6].map((s) =>
)}

{heading}

{subheading}

{items.map((item, i) => (

{item.label}

{item.detail}

))}
{[0, 1, 2].map((j) =>
)}

{completedLabel}

); export default ChecklistTimeline;