import { Check } from 'lucide-react'; import React from 'react'; import { Box } from './Box'; import { Icon } from './Icon'; import { Text } from './Text'; export interface Step { id: string; label: string; } export interface StepIndicatorProps { steps: Step[]; currentStepId: string; completedStepIds: string[]; } export const StepIndicator = ({ steps, currentStepId, completedStepIds }: StepIndicatorProps) => { return ( {steps.map((step, index) => { const isCurrent = step.id === currentStepId; const isCompleted = completedStepIds.includes(step.id); const isLast = index === steps.length - 1; return ( {isCompleted ? ( ) : ( {index + 1} )} {step.label} {!isLast && ( )} ); })} ); };