'use client'

import { EditionProvider, type Edition } from '@/contexts/edition-context'
import { Suspense, type ReactNode } from 'react'

export function AdminEditionWrapper({
  children,
  editions,
}: {
  children: ReactNode
  editions: Edition[]
}) {
  return (
    <Suspense fallback={null}>
      <EditionProvider editions={editions}>
        {children}
      </EditionProvider>
    </Suspense>
  )
}
