(state, ownProps)
| 7 | import { selectCollection } from 'selectors'; |
| 8 | |
| 9 | const mapStateToProps = (state, ownProps) => { |
| 10 | const { collectionId, location } = ownProps; |
| 11 | const query = collectionDocumentsQuery(location, collectionId); |
| 12 | |
| 13 | return { |
| 14 | collection: selectCollection(state, collectionId), |
| 15 | query, |
| 16 | }; |
| 17 | }; |
| 18 | |
| 19 | export default compose(withRouter, connect(mapStateToProps))(DocumentManager); |
nothing calls this directly
no test coverage detected