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