package.cjs.react-utils.useDisplayErrorPage.useDisplayErrorPage.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useErrorDisplayStore = exports["default"] = void 0;
var _ramda = require("ramda");
var _zustand = require("zustand");
var useDisplayErrorPage = function useDisplayErrorPage() {
return useErrorDisplayStore((0, _ramda.prop)("showErrorPage"));
};
var useErrorDisplayStore = (0, _zustand.create)(function () {
return {
showErrorPage: false,
statusCode: 404,
failedApiUrl: "",
failedApiPath: ""
};
});
exports.useErrorDisplayStore = useErrorDisplayStore;
var _default = useDisplayErrorPage;
exports["default"] = _default;
//# sourceMappingURL=useDisplayErrorPage.js.map