Files
brain/web/components/app-shell-wrapper.tsx
Andrew S Erwin b9721ff13f
release gate / check (push) Failing after 8m35s
initial commit on Federted servers
2026-10-19 16:23:55 -05:00

16 lines
523 B
TypeScript

'use client'
import { SessionProvider } from 'next-auth/react'
import type { Session } from 'next-auth'
import { AppShell } from '@/components/app-shell'
// Nested provider seeded with the server session: useSession() in AppShell
// has data during SSR, so the signed-in shell is server-rendered.
export function AppShellWrapper({ session, children }: { session: Session; children: React.ReactNode }) {
return (
<SessionProvider session={session}>
<AppShell>{children}</AppShell>
</SessionProvider>
)
}