Spaces:
Runtime error
Runtime error
Download src/app/dashboard/layout.tsx from Ali-Developments/COURTRIX: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/spaces/Ali-Developments/COURTRIX/resolve/main/src/app/dashboard/layout.tsx
- Command line
-
hf download hf://spaces/Ali-Developments/COURTRIX/src/app/dashboard/layout.tsx
-
curl -L -o layout.tsx https://huggingface.co/spaces/Ali-Developments/COURTRIX/resolve/main/src/app/dashboard/layout.tsx
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>; | |
| } | |