2022-04-20 16:15:42 +02:00
|
|
|
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-04-20 16:15:42 +02:00
|
|
|
|
2022-05-04 15:20:34 +02:00
|
|
|
const select = (state) => {
|
2022-04-20 16:15:42 +02:00
|
|
|
return {
|
2022-05-04 15:20:34 +02:00
|
|
|
history: selectHistory(state),
|
2022-04-20 16:15:42 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
2022-05-04 12:24:13 +02:00
|
|
|
doClearContentHistoryAll: () => dispatch(doClearContentHistoryAll()),
|
2022-04-20 16:15:42 +02:00
|
|
|
});
|
|
|
|
|
2022-05-03 13:21:51 +02:00
|
|
|
export default withRouter(connect(select, perform)(WatchHistoryPage));
|