2018-08-30 07:11:05 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-08 05:47:39 +02:00
|
|
|
import { doResolveUri } from 'redux/actions/claims';
|
|
|
|
import { makeSelectClaimForUri } from 'redux/selectors/claims';
|
2018-08-30 07:11:05 +02:00
|
|
|
import UserHistoryItem from './view';
|
|
|
|
|
2018-08-31 05:45:49 +02:00
|
|
|
const select = (state, props) => ({
|
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
|
|
|
});
|
|
|
|
|
2021-10-08 05:47:39 +02:00
|
|
|
const perform = (dispatch) => ({
|
|
|
|
resolveUri: (uri) => dispatch(doResolveUri(uri)),
|
2018-08-31 05:45:49 +02:00
|
|
|
});
|
2018-08-30 07:11:05 +02:00
|
|
|
|
2021-10-08 05:47:39 +02:00
|
|
|
export default connect(select, perform)(UserHistoryItem);
|