({ currentStep, totalSteps, handlePrev, handleNext })
| 95 | handlePrev: () => void |
| 96 | handleNext: () => void |
| 97 | }> = ({ currentStep, totalSteps, handlePrev, handleNext }) => ( |
| 98 | <div className="flex justify-end gap-3"> |
| 99 | {currentStep === 0 ? null : ( |
| 100 | <button onClick={handlePrev} className={ButtonClasses}> |
| 101 | Previous |
| 102 | </button> |
| 103 | )} |
| 104 | {currentStep === totalSteps - 1 ? null : ( |
| 105 | <button onClick={handleNext} className={ButtonClasses}> |
| 106 | Next |
| 107 | </button> |
| 108 | )} |
| 109 | </div> |
| 110 | ) |
| 111 | |
| 112 | const Stepper: React.FC = () => { |
| 113 | const [currentStep, setCurrentStep] = useState(1) |
nothing calls this directly
no outgoing calls
no test coverage detected