package.cjs.react-utils.useDisplayErrorPage.useDisplayErrorPage.js.map 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.
{"version":3,"file":"useDisplayErrorPage.js","names":["_ramda","require","_zustand","useDisplayErrorPage","useErrorDisplayStore","prop","exports","create","showErrorPage","statusCode","failedApiUrl","failedApiPath","_default"],"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,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAME,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAA;EAAA,OAASC,oBAAoB,CAAC,IAAAC,WAAI,EAAC,eAAe,CAAC,CAAC;AAAA;AAEtE,IAAMD,oBAAoB,GAAAE,OAAA,CAAAF,oBAAA,GAAG,IAAAG,eAAM,EAAC;EAAA,OAAO;IAChDC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,GAAG;IACfC,YAAY,EAAE,EAAE;IAChBC,aAAa,EAAE;EACjB,CAAC;AAAA,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAN,OAAA,cAEWH,mBAAmB","ignoreList":[]}