import { getServerSession } from "next-auth";
import { authOptions } from "@/auth";
import { AdminShell } from "@/components/admin/AdminShell";

export default async function AdminLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  const session = await getServerSession(authOptions);

  return <AdminShell session={session}>{children}</AdminShell>;
}
