starchat-ui / pages /_app.tsx
matthoffner's picture
Duplicate from matthoffner/chatbot
13095e0
raw
history blame
660 Bytes
import { Toaster } from 'react-hot-toast';
import { QueryClient, QueryClientProvider } from 'react-query';
import { appWithTranslation } from 'next-i18next';
import type { AppProps } from 'next/app';
import { Inter } from 'next/font/google';
import '@/styles/globals.css';
const inter = Inter({ subsets: ['latin'] });
function App({ Component, pageProps }: AppProps<{}>) {
const queryClient = new QueryClient();
return (
<div className={inter.className}>
<Toaster />
<QueryClientProvider client={queryClient}>
<Component {...pageProps} />
</QueryClientProvider>
</div>
);
}
export default appWithTranslation(App);