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