import { IntlProvider } from 'react-intl'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import Head from 'next/head'; import { useRouter } from 'next/router'; import useLocale from 'hooks/useLocale'; import useConfig from 'hooks/useConfig'; import 'react-basics/dist/styles.css'; import 'styles/variables.css'; import 'styles/locale.css'; import 'styles/index.css'; import '@fontsource/inter/400.css'; import '@fontsource/inter/600.css'; const client = new QueryClient({ defaultOptions: { queries: { refetchOnWindowFocus: false, }, }, }); export default function App({ Component, pageProps }) { const { locale, messages } = useLocale(); const { basePath } = useRouter(); useConfig(); const Wrapper = ({ children }) => {children}; if (process.env.uiDisabled) { return null; } return ( null} > ); }