import type { ReactNode } from "react"; import Link from "next/link"; import { requireAdmin } from "@/lib/auth"; import { logoutAction } from "../actions"; // Guarded chrome for every authenticated admin page. Login lives outside this // group so it never inherits the nav or the auth gate. export default async function PanelLayout({ children, }: { children: ReactNode; }) { await requireAdmin(); return (
RetroBlog Admin
{children}
); }