import {Context, createContext, Dispatch, SetStateAction} from "react";

export type SupportedLocale = 'fr' | 'en';

export interface LangContextProps {
    lang: SupportedLocale;
    setLang: Dispatch<SetStateAction<SupportedLocale>>;
}

export const LangContext: Context<LangContextProps> = createContext<LangContextProps>({
    lang: 'fr',
    setLang: (): void => {
    }
});