const search = await searchFromParamsWithLocation(searchParams);
search can then be passed wherever a search object is required
const {
results: properties,
pagination,
errors,
} = await Property.search({ search, county, location, postcode, branch });
<SearchSetter
search={search}
propertyData={{ results: serializableProperties, pagination: pagination?.toJSON() }}
/>
Extension to search-from-param Returns the search object from search-from-params but will also add postcode/location/county data if included in params