import { AdminShell } from '@/components/layout/admin-shell'
import { requireAdmin } from '@/lib/auth/session'

export const dynamic = 'force-dynamic'

export default async function ProtectedLayout({ children }: { children: React.ReactNode }) {
  const currentAdmin = await requireAdmin()
  return <AdminShell currentAdmin={currentAdmin}>{children}</AdminShell>
}
