package.react-utils.useQueryParams.useQueryParams.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":"useQueryParams.js","names":["useLocation","parseQueryParams","useQueryParams","options","location","search"],"sources":["../../../src/react-utils/useQueryParams/useQueryParams.js"],"sourcesContent":["import { useLocation } from \"react-router-dom\";\nimport { parseQueryParams } from \"utils/general\";\n\nconst useQueryParams = options => {\n const location = useLocation();\n\n return parseQueryParams(location.search, options);\n};\n\nexport default useQueryParams;\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ,kBAAkB;AAC9C,SAASC,gBAAgB;AAEzB,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,OAAO,EAAI;EAChC,IAAMC,QAAQ,GAAGJ,WAAW,EAAE;EAE9B,OAAOC,gBAAgB,CAACG,QAAQ,CAACC,MAAM,EAAEF,OAAO,CAAC;AACnD,CAAC;AAED,eAAeD,cAAc"}