summaryrefslogtreecommitdiff
path: root/src/pages/_app.js
blob: faa8b2b49a3e339fe0d74662cdd2a682e6d37fda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import '../styles/globals.css';
import NextProgress from 'next-progress';
import { ToastContainer, Slide } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import { useRouter } from 'next/router';
import { useEffect, useState } from 'react';
import Image from 'next/image';
import { AnimatePresence } from 'framer-motion';

function MyApp({ Component, pageProps }) {
  const router = useRouter();

  return (
    <>
      <ToastContainer 
        position='top-center'
        autoClose={5000}
        theme='light'
        closeOnClick={false}
        transition={Slide}
        limit={1}
      />
      <NextProgress color="#D7A30A" options={{
        showSpinner: false,
      }} />
      <AnimatePresence
        mode='sync'
        initial={false}
      >
        <Component {...pageProps} />
      </AnimatePresence>
    </>
  )
}

export default MyApp