Reactjs – How to extract session in next.js
export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return ( <html lang="en"> <body > <SessionProvider > <Toaster/> <RegisterModal/> <LoginModal/> <Layouts> {children} </Layouts> </SessionProvider> </body> </html> Help me to extract sessions so that I can pass it to…