import * as React from 'react'; import { FormLabel } from 'app/components/FormLabel'; import { Radio } from 'app/components/Radio'; import styled from 'styled-components/macro'; import { useTranslation } from 'react-i18next'; import { messages } from './messages'; export function LanguageSwitch() { const { t, i18n } = useTranslation(); const handleLanguageChange = (event: React.ChangeEvent) => { const language = event.target.value; i18n.changeLanguage(language); }; return ( {t(...messages.selectLanguage())} ); } const Wrapper = styled.div` display: flex; flex-direction: column; ${FormLabel} { margin-bottom: 0.625rem; } `; const Languages = styled.div` display: flex; .radio { margin-right: 1.5rem; } `;