"use client" interface Step { id: number title: string subtitle: string } interface StepIndicatorProps { currentStep: number steps?: Step[] } export function StepIndicator({ currentStep, steps = [ { id: 1, title: "步骤 1", subtitle: "基础设置" }, { id: 2, title: "步骤 2", subtitle: "设备选择" }, { id: 3, title: "步骤 3", subtitle: "选择内容库" }, ], }: StepIndicatorProps) { return (
{steps.map((step) => (
= step.id ? "text-blue-600" : "text-gray-400" }`} >
= step.id ? "bg-blue-600 text-white shadow-sm" : "bg-white border border-gray-200 text-gray-400" }`} > {step.id}
{step.subtitle}
))}
) }