import { verifySession } from "@/app/lib/dal";
import { getHeaderContent } from "@/app/lib/content";
import AdminShell from "@/app/admin/_components/AdminShell";

export default async function AdminDashboardLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  const [session, header] = await Promise.all([
    verifySession(),
    getHeaderContent(),
  ]);

  return (
    <AdminShell email={session.email} logoUrl={header.logoUrl}>
      {children}
    </AdminShell>
  );
}
