'use strict';

var vue = require('vue');

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

exports.useInjectSize = useInjectSize;
exports.useProviderSize = useProviderSize;
//# sourceMappingURL=SizeContext.js.map
