import { useScroll } from "scroll-moving";export default function App() {const { handleScroll, ref } = useScroll();const list = ["Click Me 1", "Click Me 2" ];return (<div><div onClick={(event) => handleScroll(event, list)}><button>Click Me 1</button><button>Click Me 2</button></div><div ref={ref(0)} style={{ height: "100vh" }}>Content 1</div><div ref={ref(1)} style={{ height: "100vh" }}>Content 2</div></div>);}