snapify-authentik/src/pages/_app.tsx
2023-04-22 05:57:41 +02:00

22 lines
541 B
TypeScript

import { type AppType } from "next/app";
import { type Session } from "next-auth";
import { SessionProvider } from "next-auth/react";
import { api } from "~/utils/api";
import "~/styles/globals.css";
import CrispChat from "~/components/CrispChat";
const MyApp: AppType<{ session: Session | null }> = ({
Component,
pageProps: { session, ...pageProps },
}) => {
return (
<SessionProvider session={session}>
<Component {...pageProps} />
<CrispChat />
</SessionProvider>
);
};
export default api.withTRPC(MyApp);