UNPKG

vuestic-ui

Version:
14 lines (13 loc) 454 B
import { getCurrentInstance, computed } from "vue"; import { g as getCurrentApp } from "../services/current-app.mjs"; const useAppContext = () => { const currentInstance = getCurrentInstance(); return computed(() => { var _a; return ((_a = getCurrentApp()) == null ? void 0 : _a._context) || (currentInstance == null ? void 0 : currentInstance.appContext); }); }; export { useAppContext as u }; //# sourceMappingURL=useAppContext.mjs.map