'use client'

import { LanguageProvider } from '@/lib/i18n/LanguageProvider'
import type { Translations } from '@/lib/i18n/load-translations'
import type { ReactNode } from 'react'

interface AdminProvidersWrapperProps {
  children: ReactNode
  initialLanguage?: string
  initialTranslations?: Translations
}

export function AdminProvidersWrapper({
  children,
  initialLanguage = 'en',
  initialTranslations,
}: AdminProvidersWrapperProps) {
  return (
    <LanguageProvider
      initialLanguage={initialLanguage as any}
      initialTranslations={initialTranslations}
    >
      {children}
    </LanguageProvider>
  )
}
