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/createMovieCountSelector.js

18 lines
386 B

import { createSelector } from 'reselect';
import createAllMoviesSelector from './createAllMoviesSelector';
function createMovieCountSelector() {
return createSelector(
createAllMoviesSelector(),
(state) => state.movies.error,
(movies, error) => {
return {
count: movies.length,
error
};
}
);
}
export default createMovieCountSelector;