(state, query)
| 474 | } |
| 475 | |
| 476 | export 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 | |
| 493 | export function selectConfigValue(state, name) { |
| 494 | return state?.config?.[name]; |
no test coverage detected