import { defineComponent, provide, computed, inject } from 'vue';

const OverflowContextProviderKey = Symbol("OverflowContextProviderKey");
const OverflowContextProvider = defineComponent({
  compatConfig: { MODE: 3 },
  name: "OverflowContextProvider",
  inheritAttrs: false,
  props: {
    value: { type: Object }
  },
  setup(props, { slots }) {
    provide(
      OverflowContextProviderKey,
      computed(() => props.value)
    );
    return () => {
      var _a;
      return (_a = slots.default) == null ? void 0 : _a.call(slots);
    };
  }
});
function useInjectOverflowContext() {
  return inject(
    OverflowContextProviderKey,
    computed(() => null)
  );
}

export { OverflowContextProvider, useInjectOverflowContext };
//# sourceMappingURL=context.mjs.map
