All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.react-utils.useDisplayErrorPage.useDisplayErrorPage.js.map Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
{"version":3,"file":"useDisplayErrorPage.js","names":["prop","create","useDisplayErrorPage","useErrorDisplayStore","showErrorPage","statusCode","failedApiUrl","failedApiPath"],"sources":["../../../src/react-utils/useDisplayErrorPage/useDisplayErrorPage.js"],"sourcesContent":["import { prop } from \"ramda\";\nimport { create } from \"zustand\";\n\nconst useDisplayErrorPage = () => useErrorDisplayStore(prop(\"showErrorPage\"));\n\nexport const useErrorDisplayStore = create(() => ({\n  showErrorPage: false,\n  statusCode: 404,\n  failedApiUrl: \"\",\n  failedApiPath: \"\",\n}));\n\nexport default useDisplayErrorPage;\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAC5B,SAASC,MAAM,QAAQ,SAAS;AAEhC,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAA;EAAA,OAASC,oBAAoB,CAACH,IAAI,CAAC,eAAe,CAAC,CAAC;AAAA;AAE7E,OAAO,IAAMG,oBAAoB,GAAGF,MAAM,CAAC;EAAA,OAAO;IAChDG,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,GAAG;IACfC,YAAY,EAAE,EAAE;IAChBC,aAAa,EAAE;EACjB,CAAC;AAAA,CAAC,CAAC;AAEH,eAAeL,mBAAmB","ignoreList":[]}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy