MCPcopy Create free account
hub / github.com/alephdata/aleph / selectBookmarksResult

Function selectBookmarksResult

ui/src/selectors.js:476–491  ·  view source on GitHub ↗
(state, query)

Source from the content-addressed store, hash-verified

474}
475
476export function selectBookmarksResult(state, query) {
477 const model = selectModel(state);
478 const result = selectResult(
479 state,
480 query,
481 (stateInner, id) => stateInner.bookmarks[id],
482 'bookmarks'
483 );
484
485 result.results = result.results.map((bookmark) => ({
486 ...bookmark,
487 entity: model.getEntity(bookmark.entity),
488 }));
489
490 return result;
491}
492
493export function selectConfigValue(state, name) {
494 return state?.config?.[name];

Callers 1

BookmarksListFunction · 0.90

Calls 3

selectModelFunction · 0.85
selectResultFunction · 0.85
getEntityMethod · 0.45

Tested by

no test coverage detected