()
| 36 | }; |
| 37 | |
| 38 | const previous = () => { |
| 39 | if (animating) return; |
| 40 | const nextIndex = activeIndex === 0 ? items.length - 1 : activeIndex - 1; |
| 41 | setActiveIndex(nextIndex); |
| 42 | }; |
| 43 | |
| 44 | const goToIndex = (newIndex) => { |
| 45 | if (animating) return; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…