({
indexesId,
s,
}: {readonly indexesId?: Id} & StoreProp)
| 62 | }; |
| 63 | |
| 64 | export const IndexesView = ({ |
| 65 | indexesId, |
| 66 | s, |
| 67 | }: {readonly indexesId?: Id} & StoreProp) => { |
| 68 | const indexes = useIndexes(indexesId); |
| 69 | const indexIds = useIndexIds(indexes); |
| 70 | return isUndefined(indexes) ? null : ( |
| 71 | <Details |
| 72 | uniqueId={getUniqueId('i', indexesId)} |
| 73 | title={'Indexes: ' + (indexesId ?? DEFAULT)} |
| 74 | s={s} |
| 75 | > |
| 76 | {arrayIsEmpty(indexIds) |
| 77 | ? 'No indexes defined' |
| 78 | : sortedIdsMap(indexIds, (indexId) => ( |
| 79 | <IndexView |
| 80 | indexes={indexes} |
| 81 | indexesId={indexesId} |
| 82 | indexId={indexId} |
| 83 | s={s} |
| 84 | key={indexId} |
| 85 | /> |
| 86 | ))} |
| 87 | </Details> |
| 88 | ); |
| 89 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…