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

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

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