mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-19 21:46:50 -04:00
24 lines
697 B
JavaScript
24 lines
697 B
JavaScript
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);
|