Sha256: c84fd9ab28f95167dd66d9e943d8b962ebae96a36029ba98892ef18f9dab7588
Contents?: true
Size: 584 Bytes
Versions: 77
Compression:
Stored size: 584 Bytes
Contents
import { selectAPIStatus, selectAPIError, selectAPIResponse, } from 'foremanReact/redux/API/APISelectors'; import { STATUS } from 'foremanReact/constants'; import CONTENT_VIEWS_KEY from './ContentViewsConstants'; export const selectContentViews = (state, index = '') => selectAPIResponse(state, CONTENT_VIEWS_KEY + index) || {}; export const selectContentViewStatus = (state, index = '') => selectAPIStatus(state, CONTENT_VIEWS_KEY + index) || STATUS.PENDING; export const selectContentViewError = (state, index = '') => selectAPIError(state, CONTENT_VIEWS_KEY + index);
Version data entries
77 entries across 77 versions & 1 rubygems