Sha256: 2447677710cf1c46d74aa31f95805c0d9e0a5bb6fc5906f9554101762784ecce
Contents?: true
Size: 755 Bytes
Versions: 57
Compression:
Stored size: 755 Bytes
Contents
import { selectAPIStatus, selectAPIResponse, } from 'foremanReact/redux/API/APISelectors'; import { STATUS } from 'foremanReact/constants'; import { AVAILABLE_HOST_COLLECTIONS_KEY, REMOVABLE_HOST_COLLECTIONS_KEY } from './HostCollectionsConstants'; export const selectAvailableHostCollections = state => selectAPIResponse(state, AVAILABLE_HOST_COLLECTIONS_KEY) ?? {}; export const selectRemovableHostCollections = state => selectAPIResponse(state, REMOVABLE_HOST_COLLECTIONS_KEY) ?? {}; export const selectAvailableHostCollectionsStatus = state => selectAPIStatus(state, AVAILABLE_HOST_COLLECTIONS_KEY) || STATUS.PENDING; export const selectRemovableHostCollectionsStatus = state => selectAPIStatus(state, REMOVABLE_HOST_COLLECTIONS_KEY);
Version data entries
57 entries across 57 versions & 1 rubygems