mirror of
https://github.com/Radarr/Radarr
synced 2026-01-15 12:03:08 +01:00
13 lines
361 B
JavaScript
13 lines
361 B
JavaScript
import { createSelector } from 'reselect';
|
|
import { isCommandExecuting } from 'Utilities/Command';
|
|
|
|
function createExecutingCommandsSelector() {
|
|
return createSelector(
|
|
(state) => state.commands.items,
|
|
(commands) => {
|
|
return commands.filter((command) => isCommandExecuting(command));
|
|
}
|
|
);
|
|
}
|
|
|
|
export default createExecutingCommandsSelector;
|