AvatarContext.js 548 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.useAvatarProviderContext = exports.useAvatarInjectContext = void 0;
  6. var _vue = require("vue");
  7. const AvatarContextKey = Symbol('AvatarContextKey');
  8. const useAvatarInjectContext = () => {
  9. return (0, _vue.inject)(AvatarContextKey, {});
  10. };
  11. exports.useAvatarInjectContext = useAvatarInjectContext;
  12. const useAvatarProviderContext = context => {
  13. return (0, _vue.provide)(AvatarContextKey, context);
  14. };
  15. exports.useAvatarProviderContext = useAvatarProviderContext;