import { defineComponent, computed, openBlock, createElementBlock, renderSlot, createCommentVNode } from 'vue';

"use strict";
const _hoisted_1 = { key: 0 };
const __default__ = defineComponent({
  name: "me-env"
});
var script = /* @__PURE__ */ defineComponent({
  ...__default__,
  props: {
    envFn: { type: Function, required: true },
    env: { type: String, required: true, default: "dev" }
  },
  setup(__props) {
    const props = __props;
    const isShow = computed(() => {
      const res = props.envFn();
      const envArr = props.env.split(",");
      if (envArr.includes(res)) {
        return true;
      }
      return false;
    });
    return (_ctx, _cache) => {
      return isShow.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
        renderSlot(_ctx.$slots, "default")
      ])) : createCommentVNode("v-if", true);
    };
  }
});

export { script as default };
//# sourceMappingURL=env.vue2.mjs.map
