()
| 86 | }; |
| 87 | |
| 88 | const startAutoCarousel = () => { |
| 89 | const id = setInterval(() => { |
| 90 | goToNext(); |
| 91 | }, 5000); |
| 92 | |
| 93 | return id; |
| 94 | }; |
| 95 | |
| 96 | if (typeof window !== "undefined") { |
| 97 | window.addEventListener("resize", handleResize); |
no test coverage detected