import AuthProvider from '@/providers/AuthProvider'
import '@/styles/globals.scss'
import { appWithTranslation } from 'next-i18next'
import type { AppProps } from 'next/app'
import { PostContext } from '../context/PostContext'
const i18nextConfig = require('../../next-i18next.config')

const App = ({ Component, pageProps }: AppProps) => {
  return (
    <PostContext>
      <AuthProvider>
        <Component {...pageProps} />
      </AuthProvider>
    </PostContext>
  )
}

export default appWithTranslation(App, i18nextConfig)
