mirror of https://github.com/Radarr/Radarr
24 lines
703 B
JavaScript
24 lines
703 B
JavaScript
|
import { connect } from 'react-redux';
|
||
|
import { createSelector } from 'reselect';
|
||
|
import { setListMovieOverviewOption } from 'Store/Actions/addMovieActions';
|
||
|
import AddListMovieOverviewOptionsModalContent from './AddListMovieOverviewOptionsModalContent';
|
||
|
|
||
|
function createMapStateToProps() {
|
||
|
return createSelector(
|
||
|
(state) => state.addMovie,
|
||
|
(addMovie) => {
|
||
|
return addMovie.overviewOptions;
|
||
|
}
|
||
|
);
|
||
|
}
|
||
|
|
||
|
function createMapDispatchToProps(dispatch, props) {
|
||
|
return {
|
||
|
onChangeOverviewOption(payload) {
|
||
|
dispatch(setListMovieOverviewOption(payload));
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export default connect(createMapStateToProps, createMapDispatchToProps)(AddListMovieOverviewOptionsModalContent);
|