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