import { Button, Menu } from "@allurereport/web-components"; import { currentLocale } from "@/stores"; import { setLocale } from "@/stores/locale"; import { LANG_LOCALE, type LangLocale } from "@/translations/constants"; import * as styles from "./styles.scss"; // eslint-disable-next-line @typescript-eslint/no-unsafe-argument const langPickerOptions = Object.entries(LANG_LOCALE).map(([key, { full }]) => ({ key: key as LangLocale, value: full, })); export const LanguagePicker = () => { const locale = currentLocale.value; const handleSelect = (selectedOption: LangLocale) => { setLocale(selectedOption); }; return (
); };