UNPKG

ant-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

8 lines 280 B
import { inject, provide } from 'vue'; const AvatarContextKey = Symbol('AvatarContextKey'); export const useAvatarInjectContext = () => { return inject(AvatarContextKey, {}); }; export const useAvatarProviderContext = context => { return provide(AvatarContextKey, context); };