import type { ReactNode } from "react";
import { AppShell } from "@/components/shell";
import { requireDashboard } from "@/lib/authz/guard";

export default async function AdminLayout({ children }: { children: ReactNode }) {
  const ctx = await requireDashboard("admin");
  return (
    <AppShell ctx={ctx} kind="admin">
      {children}
    </AppShell>
  );
}
