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.
Radarr/frontend/src/Movie/Index/Posters/Options/MovieIndexPosterOptionsModa...

24 lines
683 B

import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { setMoviePosterOption } from 'Store/Actions/movieIndexActions';
import MovieIndexPosterOptionsModalContent from './MovieIndexPosterOptionsModalContent';
function createMapStateToProps() {
return createSelector(
(state) => state.movieIndex,
(movieIndex) => {
return movieIndex.posterOptions;
}
);
}
function createMapDispatchToProps(dispatch, props) {
return {
onChangePosterOption(payload) {
dispatch(setMoviePosterOption(payload));
}
};
}
export default connect(createMapStateToProps, createMapDispatchToProps)(MovieIndexPosterOptionsModalContent);