'use strict';

var vue = require('vue');

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

exports.useInjectSize = useInjectSize;
exports.useProviderSize = useProviderSize;
//# sourceMappingURL=sizeContext.cjs.map
