MCPcopy Create free account
hub / github.com/alephdata/aleph / mapStateToProps

Function mapStateToProps

ui/src/components/Collection/CollectionDocumentsMode.jsx:9–17  ·  view source on GitHub ↗
(state, ownProps)

Source from the content-addressed store, hash-verified

7import { selectCollection } from 'selectors';
8
9const 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
19export default compose(withRouter, connect(mapStateToProps))(DocumentManager);

Callers

nothing calls this directly

Calls 2

collectionDocumentsQueryFunction · 0.90
selectCollectionFunction · 0.90

Tested by

no test coverage detected