UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

10 lines (9 loc) 424 B
import { useSearchParams as s } from "react-router"; function n() { const [t] = s(), o = t.get("formGroupId"), e = t.get("formDataId") ?? void 0, r = t.get("dataFileHandleId") ?? void 0, a = t.get("submitted"); return { formGroupId: o, formDataId: e, dataFileHandleId: r, submitted: !!a && a !== "false" }; } export { n as useGetFormPropsFromSearchParams }; //# sourceMappingURL=useGetFormPropsFromSearchParams.js.map