{"version":3,"file":"context.mjs","names":[],"sources":["../../src/i18n/context.tsx"],"sourcesContent":["import { memo, type ReactNode } from 'react';\n\nimport ConfigProvider from '@/ConfigProvider';\nimport type { MotionComponentType } from '@/MotionProvider';\n\nimport { type TranslationResourcesInput } from './types';\n\nexport interface I18nProviderProps {\n  children: ReactNode;\n  locale?: string;\n  motion: MotionComponentType;\n  resources?: TranslationResourcesInput;\n}\n\n// Re-export for backward compatibility\nexport { I18nContext } from '@/ConfigProvider';\n\n// I18nProvider delegates to ConfigProvider with flattened i18n props\nexport const I18nProvider = memo<I18nProviderProps>(({ children, locale, resources, motion }) => {\n  return (\n    <ConfigProvider config={{}} locale={locale} motion={motion} resources={resources}>\n      {children}\n    </ConfigProvider>\n  );\n});\n\n// Internal useI18n - for useTranslation only, not exported publicly\nexport { useI18n } from '@/ConfigProvider';\n\n// Re-export types\nexport type { I18nContextValue, TranslationKey, TranslationResources } from './types';\n"],"mappings":";;;;AAkBA,MAAa,eAAe,MAAyB,EAAE,UAAU,QAAQ,WAAW,aAAa;AAC/F,QACE,oBAAC,gBAAD;EAAgB,QAAQ,EAAE;EAAU;EAAgB;EAAmB;EACpE;EACc,CAAA;EAEnB"}