import { defineComponent, createBlock, createElementBlock, openBlock, createVNode, unref } from "vue";
import { useRoomState, Avatar } from "tuikit-atomicx-vue3/room";
import ParticipantViewUI from "../StandardParticipantViewUI/ParticipantViewUI.vue2.mjs";
const _hoisted_1 = {
  key: 1,
  class: "host-away-container"
};
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "index",
  props: {
    participant: {},
    streamType: {}
  },
  setup(__props) {
    const { currentRoom } = useRoomState();
    return (_ctx, _cache) => {
      var _a, _b;
      return __props.participant ? (openBlock(), createBlock(ParticipantViewUI, {
        key: 0,
        participant: __props.participant,
        "stream-type": __props.streamType
      }, null, 8, ["participant", "stream-type"])) : (openBlock(), createElementBlock("div", _hoisted_1, [
        createVNode(unref(Avatar), {
          size: "xxl",
          src: (_a = unref(currentRoom)) == null ? void 0 : _a.roomOwner.avatarUrl,
          "user-id": (_b = unref(currentRoom)) == null ? void 0 : _b.roomOwner.userId
        }, null, 8, ["src", "user-id"])
      ]));
    };
  }
});
export {
  _sfc_main as default
};
