import { createContext } from 'use-context-selector' import type { Locale } from '@/i18n' type II18NContext = { locale: Locale i18n: Record, setLocaleOnClient: (locale: Locale) => void // setI8N: (i18n: Record) => void, } const I18NContext = createContext({ locale: 'en', i18n: {}, setLocaleOnClient: (lang: Locale) => { } // setI8N: () => {}, }) export default I18NContext