import { useGun as a, reactive as p, currentRoom as m, computed as i, unref as o, openBlock as l, createElementBlock as d, toDisplayString as g, createCommentVNode as f } from "./composables-078fa750.js";
const h = {
  key: 0,
  class: "m-1 flex items-center items-center px-2 py-1 bg-light-700 dark-bg-dark-50 rounded-lg"
}, b = {
  __name: "PostLink",
  props: {
    hash: {
      type: String,
      default: ""
    }
  },
  setup(r) {
    const c = r, u = a(), t = p({});
    u.user(m.pub).get("posts").map().once((n, e) => {
      e.indexOf(c.hash) == 0 && n ? t[e.substring(45, 87)] = n : delete t[e];
    });
    const s = i(() => Object.keys(t).length);
    return (n, e) => o(s) > 0 ? (l(), d("button", h, g(o(s)), 1)) : f("", !0);
  }
};
export {
  b as default
};
//# sourceMappingURL=PostLink-e386c26c.js.map
