@expofp/floorplan
Version:
Interactive floor plan library for expos and events
2 lines (1 loc) • 428 B
JavaScript
import{jsx as e}from"react/jsx-runtime";import"./LanguageRowContainer.scss";import{observer as o}from"mobx-react-lite";import r from"../ui/Radio";import{getLocale as n,setLocale as g,t as l}from"../utils/i18n";const t=o(({item:a})=>e(r,{name:"language",label:a.name,value:a.id,checked:a.id===n(),className:"language-row",ariaLabel:l("Change language to {{language}}",{language:a.name}),onChange:()=>g(a.id)}));export default t;