Sha256: ef1c41140dc17d7bd0edf62a396e23272ce50c3c2933691726339fbb8e914ea1
Contents?: true
Size: 521 Bytes
Versions: 77
Compression:
Stored size: 521 Bytes
Contents
import { selectAPIStatus, selectAPIError, selectAPIResponse, } from 'foremanReact/redux/API/APISelectors'; import { STATUS } from 'foremanReact/constants'; import { bookmarkKey } from './BookmarkConstants'; export const selectBookmarks = (state, key) => selectAPIResponse(state, bookmarkKey(key)) || {}; export const selectBookmarkStatus = (state, key) => selectAPIStatus(state, bookmarkKey(key)) || STATUS.PENDING; export const selectBookmarkError = (state, key) => selectAPIError(state, bookmarkKey(key));
Version data entries
77 entries across 77 versions & 1 rubygems