() => {
const [selectedLocale, setSelectedLocale] = useState('en_US')
const [defaultLocale, setDefaultLocale] = useState('vi_VN')
const [options, setOptions] = useState([
{
id: 'vi_VN',
name: 'Việt Nam',
},
{ id: 'en_US', name: 'English (US)' },
])
return (
<div>
<div>selectedLocale: {selectedLocale}</div>
<div>defaultLocale: {defaultLocale}</div>
<div>Locale Options: {JSON.stringify(options)}</div>
<SelectLocale
defaultSelectedLocale={selectedLocale}
onSelectedChange={setSelectedLocale}
defaultLocale={defaultLocale}
onCheckedDefaultLocale={setDefaultLocale}
defaultOptions={options}
onOptionsChange={setOptions}
showCheckedDefaultLocale
/>
</div>
)
}