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

Function mapStateToProps

ui/src/components/Collection/CollectionView.jsx:216–225  ·  view source on GitHub ↗
(state, ownProps)

Source from the content-addressed store, hash-verified

214}
215
216const mapStateToProps = (state, ownProps) => {
217 const { collectionId, location } = ownProps;
218 const xrefQuery = collectionXrefFacetsQuery(location, collectionId);
219
220 return {
221 model: selectModel(state),
222 xrefResult: selectCollectionXrefResult(state, xrefQuery),
223 collection: selectCollection(state, collectionId),
224 };
225};
226
227export default class CollectionView {
228 static Icon = CollectionViewIcon;

Callers

nothing calls this directly

Calls 4

selectModelFunction · 0.90
selectCollectionFunction · 0.90

Tested by

no test coverage detected