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.
17 lines
495 B
17 lines
495 B
import { createSelector } from 'reselect';
|
|
import { createIndexerSelectorForHook } from './createIndexerSelector';
|
|
|
|
function createIndexerAppProfileSelector(indexerId) {
|
|
return createSelector(
|
|
(state) => state.settings.appProfiles.items,
|
|
createIndexerSelectorForHook(indexerId),
|
|
(appProfiles, indexer = {}) => {
|
|
return appProfiles.find((profile) => {
|
|
return profile.id === indexer.appProfileId;
|
|
});
|
|
}
|
|
);
|
|
}
|
|
|
|
export default createIndexerAppProfileSelector;
|