import { defineComponent, createElementBlock, openBlock, createVNode, createElementVNode, unref, toDisplayString } from "vue";
import { useUIKit, IconLanguage } from "@tencentcloud/uikit-base-component-vue3";
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "index",
  setup(__props) {
    const { setLanguage, language } = useUIKit();
    const handleClickLanguageIcon = () => {
      const newLanguage = language.value === "en-US" ? "zh-CN" : "en-US";
      setLanguage(newLanguage);
      localStorage.setItem("tuiRoom-language", newLanguage);
    };
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", {
        class: "icon-button-container",
        onClick: handleClickLanguageIcon
      }, [
        createVNode(unref(IconLanguage)),
        createElementVNode("span", null, toDisplayString(unref(language) === "en-US" ? "English" : "中文"), 1)
      ]);
    };
  }
});
export {
  _sfc_main as default
};
