()
| 33 | const [animating, setAnimating] = useState(false); |
| 34 | |
| 35 | const next = () => { |
| 36 | if (animating) return; |
| 37 | const nextIndex = activeIndex === items.length - 1 ? 0 : activeIndex + 1; |
| 38 | setActiveIndex(nextIndex); |
| 39 | }; |
| 40 | |
| 41 | const previous = () => { |
| 42 | if (animating) return; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…