You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
697 B
24 lines
697 B
import { connect } from 'react-redux';
|
|
import { createSelector } from 'reselect';
|
|
import { setMovieOverviewOption } from 'Store/Actions/movieIndexActions';
|
|
import MovieIndexOverviewOptionsModalContent from './MovieIndexOverviewOptionsModalContent';
|
|
|
|
function createMapStateToProps() {
|
|
return createSelector(
|
|
(state) => state.movieIndex,
|
|
(movieIndex) => {
|
|
return movieIndex.overviewOptions;
|
|
}
|
|
);
|
|
}
|
|
|
|
function createMapDispatchToProps(dispatch, props) {
|
|
return {
|
|
onChangeOverviewOption(payload) {
|
|
dispatch(setMovieOverviewOption(payload));
|
|
}
|
|
};
|
|
}
|
|
|
|
export default connect(createMapStateToProps, createMapDispatchToProps)(MovieIndexOverviewOptionsModalContent);
|