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