import { ref as l, gun as n, openBlock as i, createElementBlock as c, normalizeStyle as u, withModifiers as h, createBaseVNode as p } from "./composables-078fa750.js";
const d = /* @__PURE__ */ p("div", { class: "i-la-trash-alt" }, null, -1), g = [
  d
], m = {
  __name: "PostActionBan",
  props: {
    tag: { type: String, default: "" },
    hash: { type: String, default: "" },
    host: { type: String, default: "" }
  },
  setup(o) {
    const e = o, a = l(!1);
    n.get("ban").get(e.hash).on((t) => {
      a.value = t;
    });
    async function r() {
      let t = await n.get("ban").get(e.hash).then();
      n.get("ban").get(e.hash).put(!t);
    }
    return (t, s) => (i(), c("button", {
      class: "m-1 button items-center",
      style: u({ color: a.value ? "red" : "inherit" }),
      onClick: s[0] || (s[0] = h((f) => r(), ["stop", "prevent"]))
    }, g, 4));
  }
};
export {
  m as default
};
//# sourceMappingURL=PostActionBan-a33a1175.js.map
