require("../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
let react = require("react");
//#region src/hooks/useEngineContext.ts
const defaultContext = (0, react.createContext)({});
const useEngineContext = () => {
	const context = (0, react.useContext)(window.__appContext || defaultContext);
	if ((context === null || context === void 0 ? void 0 : context.appHelper) === void 0) return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, context), {}, { appHelper: window.__appHelper });
	return context || {};
};
//#endregion
exports.default = useEngineContext;
