import { defineComponent, createElementBlock, openBlock, createElementVNode, createVNode, toDisplayString, unref, renderSlot } from "vue";
import { IconClose } from "@tencentcloud/uikit-base-component-vue3";
const _hoisted_1 = { class: "room-side-panel" };
const _hoisted_2 = { class: "header" };
const _hoisted_3 = { class: "title" };
const _hoisted_4 = { class: "content" };
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "index",
  props: {
    title: {}
  },
  emits: ["close"],
  setup(__props, { emit: __emit }) {
    const emit = __emit;
    const closeSidePanel = () => {
      emit("close");
    };
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", _hoisted_1, [
        createElementVNode("div", _hoisted_2, [
          createElementVNode("span", _hoisted_3, toDisplayString(__props.title), 1),
          createVNode(unref(IconClose), {
            size: "16",
            class: "close",
            onClick: closeSidePanel
          })
        ]),
        createElementVNode("div", _hoisted_4, [
          renderSlot(_ctx.$slots, "default", {}, void 0, true)
        ])
      ]);
    };
  }
});
export {
  _sfc_main as default
};
