Files
ZitPlane/users/ui/src/app/(protected)/layout.tsx
T

16 lines
388 B
TypeScript

import type { ReactNode } from "react";
import { AccountShell } from "@/components/account-shell";
import { requireIdentity } from "@/lib/identity";
export const dynamic = "force-dynamic";
export default async function ProtectedLayout({
children
}: {
children: ReactNode;
}) {
const user = await requireIdentity();
return <AccountShell user={user}>{children}</AccountShell>;
}