lbry-desktop/ui/page/watchHistory/index.js
2022-05-05 09:42:24 -04:00

17 lines
513 B
JavaScript

import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import WatchHistoryPage from './view';
import { selectHistory } from 'redux/selectors/content';
import { doClearContentHistoryAll } from 'redux/actions/content';
const select = (state) => {
return {
history: selectHistory(state),
};
};
const perform = (dispatch) => ({
doClearContentHistoryAll: () => dispatch(doClearContentHistoryAll()),
});
export default withRouter(connect(select, perform)(WatchHistoryPage));