Spaces:
Build error
Build error
Download pages/_app.js from Hamkytech/anycoder-6deab0e2: direct link, hf CLI and curl.
- Browser
- Download file 646 Bytes
-
https://huggingface.co/spaces/Hamkytech/anycoder-6deab0e2/resolve/main/pages/_app.js
- Command line
-
hf download hf://spaces/Hamkytech/anycoder-6deab0e2/pages/_app.js
-
curl -L -o _app.js https://huggingface.co/spaces/Hamkytech/anycoder-6deab0e2/resolve/main/pages/_app.js
646 Bytes
| import '../styles/globals.css'; | |
| import { motion, AnimatePresence } from 'framer-motion'; | |
| import { useRouter } from 'next/router'; | |
| function MyApp({ Component, pageProps }) { | |
| const router = useRouter(); | |
| return ( | |
| <AnimatePresence mode="wait"> | |
| <motion.div | |
| key={router.route} | |
| initial="initial" | |
| animate="animate" | |
| exit="exit" | |
| variants={{ | |
| initial: { opacity: 0 }, | |
| animate: { opacity: 1 }, | |
| exit: { opacity: 0 }, | |
| transition={{ duration: 0.3 }} | |
| > | |
| <Component {...pageProps} /> | |
| </motion.div> | |
| </AnimatePresence> | |
| ); | |
| } | |
| export default MyApp; |