mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
24 lines
709 B
JavaScript
24 lines
709 B
JavaScript
import { connect } from 'react-redux';
|
|
import { createSelector } from 'reselect';
|
|
import { setListMoviePosterOption } from 'Store/Actions/discoverMovieActions';
|
|
import AddListMoviePosterOptionsModalContent from './AddListMoviePosterOptionsModalContent';
|
|
|
|
function createMapStateToProps() {
|
|
return createSelector(
|
|
(state) => state.discoverMovie,
|
|
(discoverMovie) => {
|
|
return discoverMovie.posterOptions;
|
|
}
|
|
);
|
|
}
|
|
|
|
function createMapDispatchToProps(dispatch, props) {
|
|
return {
|
|
onChangePosterOption(payload) {
|
|
dispatch(setListMoviePosterOption(payload));
|
|
}
|
|
};
|
|
}
|
|
|
|
export default connect(createMapStateToProps, createMapDispatchToProps)(AddListMoviePosterOptionsModalContent);
|