UNPKG

@tencentcloud/roomkit-web-vue3

Version:

<h1 align="center"> TUIRoomKit</h1> Conference (TUIRoomKit) is a product suitable for multi-person audio and video conversation scenarios such as business meetings, webinars, and online education. By integrating this product, you can add room management,

36 lines (35 loc) 1.28 kB
import { defineComponent, createElementBlock, openBlock, createVNode, unref, withCtx } from "vue"; import { IconSetting } from "@tencentcloud/uikit-base-component-vue3"; import IconButton from "../common/base/IconButton.vue.mjs"; import { useBasicStore } from "../../stores/basic.mjs"; import { storeToRefs } from "pinia"; import { useI18n } from "../../locales/index.mjs"; const _hoisted_1 = { class: "setting-control-container" }; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "SettingControl", setup(__props) { const { t } = useI18n(); const basicStore = useBasicStore(); const { showSettingDialog } = storeToRefs(basicStore); function handleShowSettingDialog() { basicStore.setShowSettingDialog(!basicStore.showSettingDialog); } return (_ctx, _cache) => { return openBlock(), createElementBlock("div", _hoisted_1, [ createVNode(IconButton, { "is-active": unref(showSettingDialog), title: unref(t)("Settings"), onClickIcon: handleShowSettingDialog }, { default: withCtx(() => [ createVNode(unref(IconSetting), { size: "24" }) ]), _: 1 }, 8, ["is-active", "title"]) ]); }; } }); export { _sfc_main as default };