lbry-desktop/ui/component/navigationHistoryItem/index.js

15 lines
434 B
JavaScript
Raw Normal View History

2018-08-30 07:11:05 +02:00
import { connect } from 'react-redux';
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),
});
const perform = (dispatch) => ({
resolveUri: (uri) => dispatch(doResolveUri(uri)),
2018-08-31 05:45:49 +02:00
});
2018-08-30 07:11:05 +02:00
export default connect(select, perform)(UserHistoryItem);