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,

41 lines (40 loc) 1.57 kB
import { defineComponent, createElementBlock, openBlock, createBlock, createCommentVNode, unref, withCtx, createTextVNode, toDisplayString } from "vue"; import { TUIButton } from "@tencentcloud/uikit-base-component-vue3"; import useMemberInviteAction from "../../../hooks/useUserState/useUserActions/useMemberInviteAction.mjs"; const _hoisted_1 = { class: "member-invite-container" }; const _hoisted_2 = { key: 1, class: "member-invite-info" }; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "index", props: { userInfo: {} }, setup(__props) { const props = __props; const memberInviteControl = useMemberInviteAction(props.userInfo); return (_ctx, _cache) => { var _a; return openBlock(), createElementBlock("div", _hoisted_1, [ unref(memberInviteControl).type === "control" ? (openBlock(), createBlock(unref(TUIButton), { key: 0, type: "primary", onClick: unref(memberInviteControl).handler }, { default: withCtx(() => { var _a2; return [ createTextVNode(toDisplayString((_a2 = unref(memberInviteControl)) == null ? void 0 : _a2.label), 1) ]; }), _: 1 }, 8, ["onClick"])) : createCommentVNode("", true), unref(memberInviteControl).type === "info" ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString((_a = unref(memberInviteControl)) == null ? void 0 : _a.label), 1)) : createCommentVNode("", true) ]); }; } }); export { _sfc_main as default };