mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
15 lines
418 B
JavaScript
15 lines
418 B
JavaScript
import { createSelector } from 'reselect';
|
|
import { isCommandExecuting } from 'Utilities/Command';
|
|
import createCommandSelector from './createCommandSelector';
|
|
|
|
function createCommandExecutingSelector(name, contraints = {}) {
|
|
return createSelector(
|
|
createCommandSelector(name, contraints),
|
|
(command) => {
|
|
return isCommandExecuting(command);
|
|
}
|
|
);
|
|
}
|
|
|
|
export default createCommandExecutingSelector;
|