"use client" import { cn } from "@/lib/utils" interface StepIndicatorProps { currentStep: number steps: { title: string; description: string }[] onStepClick?: (step: number) => void } export function StepIndicator({ currentStep, steps, onStepClick }: StepIndicatorProps) { return (
{steps.map((step, index) => (
{/* 连接线 */} {index > 0 && (
)} {/* 步骤圆点 */} {/* 步骤标题 */}
{step.title}
{step.description}
))}
) }