import React from 'react'; import { AppStep } from '../types'; interface StepIndicatorProps { currentStep: AppStep; } const steps = [ { id: AppStep.Upload, title: 'Upload' }, { id: AppStep.Segment, title: 'Segment Subjects'}, { id: AppStep.Prompt, title: 'Create Prompt' }, { id: AppStep.Result, title: 'Generate & Refine' }, ]; const StepIndicator: React.FC = ({ currentStep }) => { return (
{steps.map((step, index) => { const isActive = currentStep === step.id; const isCompleted = currentStep > step.id; return (
{isCompleted ? ( ) : step.id}

{step.title}

{index < steps.length - 1 && (
)}
); })}
); }; export default StepIndicator;