import {createContext} from 'react' import {type TranslationFunctionParams, type TranslationState} from './types' export const Context = createContext<{ translationState: Record translate: ( parameters: TranslationFunctionParams & { key: string forceGoogleTranslate: boolean }, ) => Promise clearTranslation: (key: string) => void acquireTranslation: (key: string) => () => void } | null>(null) Context.displayName = 'TranslationContext'