first commit
This commit is contained in:
13
app/usr/layout.tsx
Normal file
13
app/usr/layout.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
// app/layout.tsx (Server Component)
|
||||
import { auth } from "@/auth";
|
||||
import LayoutClient from "@/app/components/LayoutClient";
|
||||
|
||||
export default async function Layout({ children }: { children: React.ReactNode }) {
|
||||
const session = await auth();
|
||||
|
||||
return (
|
||||
<LayoutClient session={session}>
|
||||
{children}
|
||||
</LayoutClient>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user