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/Store/Selectors/createDiscoverMovieSelector.js

14 lines
343 B

import { createSelector } from 'reselect';
function createDiscoverMovieSelector() {
return createSelector(
(state, { movieId }) => movieId,
(state) => state.discoverMovie,
(movieId, allMovies) => {
return allMovies.items.find((movie) => movie.tmdbId === movieId);
}
);
}
export default createDiscoverMovieSelector;