import { useI18n } from "@/i18n/i18n.client" import type { CookiesStore } from "@/utils/constants" export interface LocaleFlagProps { locale: string cookiesStore: CookiesStore } export const LocaleFlag = (props: LocaleFlagProps): JSX.Element => { const { locale, cookiesStore } = props const i18n = useI18n(cookiesStore) return (
{i18n.translate(`common.${locale}`)}
) }