import type { Metadata } from "next";
import { DashboardShell } from "@/components/dashboard/dashboard-shell";
import { requireProfile } from "@/lib/auth";

export const metadata: Metadata = { title: "بوابة المتبرع", robots: { index: false, follow: false } };
export const dynamic = "force-dynamic";

export default async function DonorLayout({ children }: { children: React.ReactNode }) {
  const profile = await requireProfile("donor");
  return <DashboardShell profile={profile} role="donor">{children}</DashboardShell>;
}
