import { defineComponent as m, createElementBlock as e, openBlock as t, Fragment as p, renderList as a, withModifiers as u, createElementVNode as _, toDisplayString as d } from "vue";
const k = { class: "context-menu" }, f = ["onClick"], v = /* @__PURE__ */ m({
  __name: "Menu",
  props: {
    options: {}
  },
  emits: ["close"],
  setup(s, { emit: i }) {
    const c = i, r = (n) => {
      n.cb(), c("close");
    };
    return (n, h) => (t(), e("div", k, [
      (t(!0), e(p, null, a(s.options, (o, l) => (t(), e("div", {
        key: l,
        onClick: u((x) => r(o), ["stop"])
      }, [
        _("span", null, d(o.text), 1)
      ], 8, f))), 128))
    ]));
  }
});
export {
  v as default
};
//# sourceMappingURL=Menu.vue2.js.map
