MOPC-App/src/components/layouts/admin-edition-wrapper.tsx

21 lines
407 B
TypeScript

'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>
)
}