package.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.
import { prop } from "ramda";
import { create } from "zustand";
var useDisplayErrorPage = function useDisplayErrorPage() {
return useErrorDisplayStore(prop("showErrorPage"));
};
export var useErrorDisplayStore = create(function () {
return {
showErrorPage: false,
statusCode: 404,
failedApiUrl: "",
failedApiPath: ""
};
});
export default useDisplayErrorPage;
//# sourceMappingURL=useDisplayErrorPage.js.map