tav-ui
Version:
13 lines (10 loc) • 323 B
JavaScript
import { provide, inject } from 'vue';
const FileContextKey = Symbol("file");
function createFileContext(context) {
provide(FileContextKey, context);
}
function useFileContext() {
return inject(FileContextKey);
}
export { FileContextKey, createFileContext, useFileContext };
//# sourceMappingURL=use-context2.mjs.map