COURTRIX / src /app /dashboard /layout.tsx
Ali-Developments's picture
Upload 125 files
ad79323 verified
Raw
History Blame Contribute Delete
380 Bytes
import type { ReactNode } from "react";
import { DashboardShell } from "@/components/dashboard/dashboard-shell";
import { requireCurrentUser } from "@/server/auth/session";
export default async function DashboardLayout({
children,
}: {
children: ReactNode;
}) {
const user = await requireCurrentUser();
return <DashboardShell user={user}>{children}</DashboardShell>;
}