import { inject } from 'vue' import type { InjectionKey } from 'vue' export type ContextType = any; export const useContext = ( contextInjectKey: string | InjectionKey> = Symbol(), defaultValue?: ContextType ): T => { return inject(contextInjectKey, defaultValue || ({} as T)); };