()
| 11 | } |
| 12 | |
| 13 | function back() { |
| 14 | setCurrentStepIndex(i => { |
| 15 | if (i <= 0) return i |
| 16 | return i - 1 |
| 17 | }) |
| 18 | } |
| 19 | |
| 20 | function goTo(index: number) { |
| 21 | setCurrentStepIndex(index) |
nothing calls this directly
no outgoing calls
no test coverage detected