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

17 lines
385 B
JavaScript
Raw Normal View History

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