Files
OpenFrame/app/(dashboard)/layout.tsx
T
Yusuf İpek 6e95f667e3 feat: add workspace management features including member invitations and role updates
- Implemented API endpoints for managing workspace members (GET, POST, PATCH, DELETE).
- Added workspace creation and retrieval functionalities.
- Enhanced project model to associate with workspaces.
- Updated project member roles and access control logic.
- Created sign-out page and updated authentication flow.
- Modified header to include navigation to workspaces.
- Updated Prisma schema to include workspace and member models.
- Seed script updated to create demo workspaces and associated members.
2026-02-07 07:41:12 +03:00

18 lines
396 B
TypeScript

import { Header } from '@/components/layout';
import { auth } from '@/lib/auth';
export default async function DashboardLayout({
children,
}: {
children: React.ReactNode;
}) {
const session = await auth();
return (
<div className="relative flex min-h-screen flex-col">
<Header user={session?.user ?? null} />
<main className="flex-1">{children}</main>
</div>
);
}