feat: initial commit
- `pnpm create t3-app@latest`
This commit is contained in:
commit
e06ecdf652
20 changed files with 3524 additions and 0 deletions
17
src/pages/_app.tsx
Normal file
17
src/pages/_app.tsx
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { type Session } from "next-auth";
|
||||
import { SessionProvider } from "next-auth/react";
|
||||
import { type AppType } from "next/app";
|
||||
import "~/styles/globals.css";
|
||||
|
||||
const MyApp: AppType<{ session: Session | null }> = ({
|
||||
Component,
|
||||
pageProps: { session, ...pageProps },
|
||||
}) => {
|
||||
return (
|
||||
<SessionProvider session={session}>
|
||||
<Component {...pageProps} />
|
||||
</SessionProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export default MyApp;
|
||||
Reference in a new issue