()
| 6 | const [scroll, setScroll] = useState(false); |
| 7 | |
| 8 | const scrollToTop = () => { |
| 9 | window.scrollTo({ |
| 10 | top: 0, |
| 11 | behavior: "smooth", |
| 12 | }); |
| 13 | }; |
| 14 | |
| 15 | useEffect(() => { |
| 16 | smoothscroll.polyfill(); // Apply smoothscroll polyfill for older browsers |
nothing calls this directly
no outgoing calls
no test coverage detected