import { CheckIcon } from "lucide-react" interface Step { number: number title: string } interface StepIndicatorProps { steps: Step[] currentStep: number } export function StepIndicator({ steps, currentStep }: StepIndicatorProps) { return (
{steps.map((step, index) => { const isCompleted = currentStep > step.number const isCurrent = currentStep === step.number return (
{/* 步骤连接线 */} {index > 0 &&
} {/* 步骤圆点 */}
{isCompleted ? ( ) : ( {step.number} )}
{/* 步骤标题 */}

{step.title}

) })}
) }