mirror of
https://github.com/documenso/documenso.git
synced 2025-11-20 03:32:14 +10:00
16 lines
397 B
TypeScript
16 lines
397 B
TypeScript
'use client';
|
|
|
|
import React from 'react';
|
|
|
|
import type { Session } from 'next-auth';
|
|
import { SessionProvider } from 'next-auth/react';
|
|
|
|
export type NextAuthProviderProps = {
|
|
session?: Session | null;
|
|
children: React.ReactNode;
|
|
};
|
|
|
|
export const NextAuthProvider = ({ session, children }: NextAuthProviderProps) => {
|
|
return <SessionProvider session={session}>{children}</SessionProvider>;
|
|
};
|