import { useGun as l, ref as i, openBlock as c, createElementBlock as u, normalizeStyle as h, withModifiers as p, createBaseVNode as d } from "./composables-Ci32s3jE.js";
const g = /* @__PURE__ */ d("div", { class: "i-la-trash-alt" }, null, -1), f = [
  g
], _ = {
  __name: "PostActionBan",
  props: {
    tag: { type: String, default: "" },
    hash: { type: String, default: "" },
    host: { type: String, default: "" }
  },
  setup(o) {
    const e = o, n = l(), a = i(!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) => (c(), u("button", {
      class: "m-1 button items-center",
      style: h({ color: a.value ? "red" : "inherit" }),
      onClick: s[0] || (s[0] = p((b) => r(), ["stop", "prevent"]))
    }, f, 4));
  }
};
export {
  _ as default
};
//# sourceMappingURL=PostActionBan-BvRxtRcV.js.map
