import { createContext, useContext } from "react";
var defaultContext = /*#__PURE__*/createContext({});
var useEngineContext = function useEngineContext() {
  var context = useContext(window.__appContext || defaultContext);
  return context || {};
};
export var usePisellOS = function usePisellOS() {
  var _context$appHelper;
  var context = useContext(window.__appContext || defaultContext);
  var _ref = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
    pisellos = _ref.pisellos;
  return pisellos;
};
export var usePlatform = function usePlatform() {
  var _context$appHelper2;
  var context = useEngineContext();
  var _ref2 = (context === null || context === void 0 || (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.constants) || {},
    platform = _ref2.platform;
  return platform;
};
export default useEngineContext;