"use client"; import { motion } from "framer-motion"; import { IconCheck } from "@tabler/icons-react"; import { cn } from "../lib/utils"; import { transitions } from "../lib/motion"; /** Progress through a multi-step flow. */ export function Steps({ steps, current, className, }: { steps: Array<{ label: string; description?: string }>; /** Index of the active step. Earlier steps show as done. */ current: number; className?: string; }) { return (
    {steps.map((step, index) => { const done = index < current; const active = index === current; return (
  1. {index > 0 ? ( ) : null} {done ? : index + 1} {step.label} {step.description ? ( {step.description} ) : null}
  2. ); })}
); }