import Link from "next/link"; import { MailWarning } from "lucide-react"; import { getWorkspace } from "@/lib/session"; import { Sidebar } from "@/components/dashboard/sidebar"; import { Topbar } from "@/components/dashboard/topbar"; import { ResendVerificationButton } from "@/components/dashboard/resend-verification"; export const dynamic = "force-dynamic"; export default async function DashboardLayout({ children }: { children: React.ReactNode }) { const ws = await getWorkspace(); return (
({ id: p.id, name: p.name, environment: p.environment }))} currentProjectId={ws.project.id} isAdmin={ws.isAdmin} /> {!ws.user.emailVerified ? (
Verify {ws.user.email} to unlock production API access. The Playground works while you wait. Change email
) : null}
{children}
); }