ether-admin/node_modules/ant-design-vue/lib/avatar/AvatarContext.js

16 lines
548 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useAvatarProviderContext = exports.useAvatarInjectContext = void 0;
var _vue = require("vue");
const AvatarContextKey = Symbol('AvatarContextKey');
const useAvatarInjectContext = () => {
return (0, _vue.inject)(AvatarContextKey, {});
};
exports.useAvatarInjectContext = useAvatarInjectContext;
const useAvatarProviderContext = context => {
return (0, _vue.provide)(AvatarContextKey, context);
};
exports.useAvatarProviderContext = useAvatarProviderContext;