mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
- 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.
18 lines
396 B
TypeScript
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>
|
|
);
|
|
}
|