MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / LocaleSelector

Function LocaleSelector

src/components/LocaleSelector.tsx:25–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23];
24
25const LocaleSelector = () => {
26 const settingStore = useSettingStore();
27 const locale = settingStore.setting.locale;
28
29 const handleLocaleChange = (locale: Locale) => {
30 settingStore.setLocale(locale);
31 };
32
33 return <Select className="w-28" value={locale} itemList={localeItemList} onValueChange={handleLocaleChange} />;
34};
35
36export default LocaleSelector;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected