Website/pages/_app.tsx
TheClashFruit 844a9060de
All checks were successful
Lint Codebase / lint (push) Successful in 1m10s
feat: Next.js rewrite
2024-08-29 15:20:28 +02:00

17 lines
490 B
TypeScript

import '@/styles/globals.scss';
import { UserProvider } from '@/context/UserContext';
import { AnimatePresence } from 'framer-motion';
import type { AppProps } from 'next/app';
export default function App({ Component, pageProps, router }: AppProps) {
return (
<UserProvider>
<AnimatePresence mode="wait" initial={false} onExitComplete={() => window.scrollTo(0, 0)}>
<Component {...pageProps} key={router.asPath} />
</AnimatePresence>
</UserProvider>
);
}