import { AnimatePresence } from "framer-motion"; import { useRouter } from "next/router"; function handleExitComplete() { if (typeof window !== "undefined") { window.scrollTo({ top: 0 }); } } function MyApp({ Component, pageProps }) { const router = useRouter(); return ( <> ); } export default MyApp;