import React, { useEffect } from 'react'; import { IntlProvider } from 'react-intl'; import { Provider } from 'react-redux'; import { useStore } from 'redux/store'; import useLocale from 'hooks/useLocale'; import { messages } from 'lib/lang'; import 'styles/variables.css'; import 'styles/bootstrap-grid.css'; import 'styles/index.css'; const Intl = ({ children }) => { const [locale, setLocale] = useLocale(); const Wrapper = ({ children }) => {children}; useEffect(() => { const saved = localStorage.getItem('locale'); if (saved) { setLocale(saved); } }); return ( {children} ); }; export default function App({ Component, pageProps }) { const store = useStore(); return ( ); }