2018-08-30 07:11:05 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { selectHistoryPageCount, makeSelectHistoryForPage } from 'redux/selectors/content';
|
|
|
|
import { selectCurrentParams, makeSelectCurrentParam } from 'lbry-redux';
|
|
|
|
import { doClearContentHistoryUri } from 'redux/actions/content';
|
|
|
|
import UserHistory from './view';
|
|
|
|
|
2019-03-28 17:53:13 +01:00
|
|
|
const select = state => ({
|
|
|
|
pageCount: selectHistoryPageCount(state),
|
|
|
|
// history: makeSelectHistoryForPage(paramPage)(state),
|
|
|
|
});
|
2018-08-30 07:11:05 +02:00
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
clearHistoryUri: uri => dispatch(doClearContentHistoryUri(uri)),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(UserHistory);
|