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,

31 lines (30 loc) 732 B
import { ref } from "vue"; var OverlayMap = /* @__PURE__ */ ((OverlayMap2) => { OverlayMap2["AISubtitlesOverlay"] = "AISubtitlesOverlay"; OverlayMap2["RoomInviteOverlay"] = "RoomInviteOverlay"; return OverlayMap2; })(OverlayMap || {}); const overlayMap = ref({ [ "AISubtitlesOverlay" /* AISubtitlesOverlay */ ]: { visible: false }, [ "RoomInviteOverlay" /* RoomInviteOverlay */ ]: { visible: false } }); function useRoomOverlayHooks() { const getOverlayMap = () => overlayMap; const toggleOverlayVisibility = (overlay, isShow) => { overlayMap.value[overlay].visible = isShow; }; return { getOverlayMap, toggleOverlayVisibility }; } export { OverlayMap, useRoomOverlayHooks };