mirror of https://github.com/lidarr/Lidarr
12 lines
410 B
TypeScript
12 lines
410 B
TypeScript
import { createSelector } from 'reselect';
|
|
import { isCommandExecuting } from 'Utilities/Command';
|
|
import createCommandSelector from './createCommandSelector';
|
|
|
|
function createCommandExecutingSelector(name: string, contraints = {}) {
|
|
return createSelector(createCommandSelector(name, contraints), (command) => {
|
|
return isCommandExecuting(command);
|
|
});
|
|
}
|
|
|
|
export default createCommandExecutingSelector;
|