import type { Metadata } from "next"; import { requireAdmin } from "@/lib/session"; import { AdminShell } from "@/components/admin/admin-shell"; export const dynamic = "force-dynamic"; export const metadata: Metadata = { title: { default: "Admin", template: "%s ยท Fetcha Admin" }, robots: { index: false, follow: false }, }; export default async function AdminLayout({ children }: { children: React.ReactNode }) { const user = await requireAdmin(); return {children}; }