import { defineComponent, createElementBlock, openBlock, createVNode, createElementVNode, unref, toDisplayString } from "vue";
import { useUIKit, IconSwitchTheme } from "@tencentcloud/uikit-base-component-vue3";
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "index",
  setup(__props) {
    const { t, setTheme, theme } = useUIKit();
    const handleClickThemeIcon = () => {
      const newTheme = theme.value === "dark" ? "light" : "dark";
      setTheme(newTheme);
      localStorage.setItem("tuiRoom-theme", newTheme);
    };
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", {
        class: "icon-button-container",
        onClick: handleClickThemeIcon
      }, [
        createVNode(unref(IconSwitchTheme), { size: "20" }),
        createElementVNode("span", null, toDisplayString(unref(t)("Theme.Title")), 1)
      ]);
    };
  }
});
export {
  _sfc_main as default
};
