import { useEffect } from 'react' import { AppProps } from 'next/app' import useTranslation from 'next-translate/useTranslation' import { ThemeProvider } from 'contexts/Theme' import { cookies } from 'utils/cookies' import '@fontsource/poppins/400.css' import '@fontsource/poppins/600.css' import '@fontsource/poppins/700.css' import '@fontsource/roboto/400.css' import '@fontsource/roboto/700.css' import 'normalize.css/normalize.css' const ThreamApp = ({ Component, pageProps }: AppProps): JSX.Element => { const { lang } = useTranslation() useEffect(() => { cookies.set('NEXT_LOCALE', lang) }, [lang]) return ( <> ) } export default ThreamApp