(state, ownProps)
| 109 | } |
| 110 | |
| 111 | const mapStateToProps = (state, ownProps) => { |
| 112 | const { collection, collectionId: id, location, forceCasefile } = ownProps; |
| 113 | const collectionId = id || collection?.id; |
| 114 | const isCasefile = forceCasefile || collection?.casefile; |
| 115 | const collectionStatus = selectCollection(state, collectionId)?.status; |
| 116 | const query = collectionSearchQuery(location, collectionId); |
| 117 | |
| 118 | return { |
| 119 | collectionId, |
| 120 | collection: { ...collection, status: collectionStatus }, |
| 121 | isCasefile, |
| 122 | query, |
| 123 | }; |
| 124 | }; |
| 125 | |
| 126 | export default compose( |
| 127 | withRouter, |
nothing calls this directly
no test coverage detected