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

const SizeContextKey = Symbol("SizeContextKey");
function useInjectSize() {
  return inject(SizeContextKey, ref(void 0));
}
function useProviderSize(size) {
  const parentSize = useInjectSize();
  provide(
    SizeContextKey,
    computed(() => size.value || parentSize.value)
  );
  return size;
}

export { useInjectSize, useProviderSize };
//# sourceMappingURL=sizeContext.mjs.map
