import { Component } from 'solid-js'; interface StepIndicatorProps { steps: string[]; currentStep: number; } export const StepIndicator: Component = (props) => { return (
{props.steps.map((step, index) => (
{index < props.currentStep ? '✓' : index + 1}
{index < props.steps.length - 1 && (
)}
))}
); };