import { Check } from 'lucide-react'; import { cn } from '@effigenix/ui'; export interface Step { label: string; state: 'done' | 'active' | 'pending'; } interface StepIndicatorProps { steps: Step[]; } export function StepIndicator({ steps }: StepIndicatorProps) { return (
{steps.map((step, i) => (
{step.state === 'done' ? : i + 1}
{i < steps.length - 1 && (
)}
))}
{steps.map((step, i) => ( {step.label} ))}
); }