import { defineComponent as a, createElementBlock as p, openBlock as u, normalizeStyle as c, unref as e, createElementVNode as o, toDisplayString as m } from "vue";
import { usePrivateChatCount as d } from "./composables-BAZQlC3e.js";
const f = { class: "font-bold text-lg mx-2" }, b = /* @__PURE__ */ a({
  __name: "ChatPrivateCount",
  props: {
    pub: {
      default: "",
      type: String
    }
  },
  emits: ["chat"],
  setup(n) {
    const l = n, { count: r, available: i } = d(l.pub);
    return (s, t) => (u(), p("div", {
      class: "pl-2 flex items-center bg-light-200 dark-bg-dark-600 rounded-xl cursor-pointer",
      style: c({ opacity: e(i) ? 1 : 0.1 }),
      onClick: t[0] || (t[0] = (g) => s.$emit("chat"))
    }, [
      t[1] || (t[1] = o("div", { class: "i-ph-chats-light text-xl" }, null, -1)),
      o("div", f, m(e(r)), 1)
    ], 4));
  }
});
export {
  b as default
};
//# sourceMappingURL=ChatPrivateCount-Bh5AZNrv.js.map
