MCPcopy Index your code
hub / github.com/tinyplex/tinybase / IndexesView

Function IndexesView

src/ui-react-inspector/IndexesView.tsx:64–89  ·  view source on GitHub ↗
({
  indexesId,
  s,
}: {readonly indexesId?: Id} & StoreProp)

Source from the content-addressed store, hash-verified

62};
63
64export 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};

Callers

nothing calls this directly

Calls 6

useIndexesFunction · 0.90
useIndexIdsFunction · 0.90
isUndefinedFunction · 0.90
getUniqueIdFunction · 0.90
arrayIsEmptyFunction · 0.90
sortedIdsMapFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…