import { useTranslation } from 'react-i18next'; import { useGlobalStates } from '@cap-rel/smartcommon'; import { Select } from '@cap-rel/smartcommon'; export const LanguageSelector = () => { const { i18n } = useTranslation(); const gst = useGlobalStates(); const changeLanguage = (lng) => { i18n.changeLanguage(lng); gst.local.set('settings', { ...gst.get('settings'), lng }); }; return (