"use client" import type React from "react" import { cn } from "@/lib/utils" interface Step { id: number title: string icon: React.ReactNode } interface StepIndicatorProps { currentStep: number steps: Step[] } export default function StepIndicator({ currentStep, steps }: StepIndicatorProps) { return (
{/* 连接线 */}
{steps.map((step, index) => { const isCompleted = index < currentStep const isActive = index === currentStep return (
{step.icon}
{step.title}
) })}
) }