import "react-big-calendar/lib/css/react-big-calendar.css"; import "tailwindcss/tailwind.css"; import "../style.css"; import { NextPage } from "next"; import { AppProps } from "next/app"; import dynamic from "next/dynamic"; import Head from "next/head"; import { appWithTranslation } from "next-i18next"; import PlausibleProvider from "next-plausible"; import toast, { Toaster } from "react-hot-toast"; import { MutationCache, QueryClient, QueryClientProvider } from "react-query"; import { useSessionStorage } from "react-use"; import ModalProvider from "@/components/modal/modal-provider"; import { UserNameContext } from "../components/user-name-context"; const CrispChat = dynamic(() => import("@/components/crisp-chat"), { ssr: false, }); const queryClient = new QueryClient({ mutationCache: new MutationCache({ onError: () => { toast.error( "Uh oh! Something went wrong. The issue has been logged and we'll fix it as soon as possible. Please try again later.", ); }, }), }); const MyApp: NextPage = ({ Component, pageProps }) => { const sessionUserName = useSessionStorage("userName", ""); return ( ); }; export default appWithTranslation(MyApp);