lbry-desktop/ui/page/watchHistory/index.js

18 lines
513 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
2022-05-03 13:21:51 +02:00
import WatchHistoryPage from './view';
2022-05-04 12:24:13 +02:00
import { selectHistory } from 'redux/selectors/content';
import { doClearContentHistoryAll } from 'redux/actions/content';
2022-05-04 15:20:34 +02:00
const select = (state) => {
return {
2022-05-04 15:20:34 +02:00
history: selectHistory(state),
};
};
const perform = (dispatch) => ({
2022-05-04 12:24:13 +02:00
doClearContentHistoryAll: () => dispatch(doClearContentHistoryAll()),
});
2022-05-03 13:21:51 +02:00
export default withRouter(connect(select, perform)(WatchHistoryPage));