mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-03-30 18:44:19 -04:00
12 lines
412 B
TypeScript
12 lines
412 B
TypeScript
import { createSelector } from 'reselect';
|
|
import { isCommandExecuting } from 'Utilities/Command';
|
|
import createCommandSelector from './createCommandSelector';
|
|
|
|
function createCommandExecutingSelector(name: string, constraints = {}) {
|
|
return createSelector(createCommandSelector(name, constraints), (command) => {
|
|
return isCommandExecuting(command);
|
|
});
|
|
}
|
|
|
|
export default createCommandExecutingSelector;
|