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

Function IndexView

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

Source from the content-addressed store, hash-verified

11import {useEditable} from './editable.ts';
12
13const IndexView = ({
14 indexes,
15 indexesId,
16 indexId,
17 s,
18}: IndexProps & {readonly indexesId?: Id} & StoreProp) => (
19 <Details
20 uniqueId={getUniqueId('i', indexesId, indexId)}
21 title={'Index: ' + indexId}
22 s={s}
23 >
24 {arrayMap(useSliceIds(indexId, indexes), (sliceId) => (
25 <SliceView
26 indexes={indexes}
27 indexesId={indexesId}
28 indexId={indexId}
29 sliceId={sliceId}
30 s={s}
31 key={sliceId}
32 />
33 ))}
34 </Details>
35);
36
37const SliceView = ({
38 indexes,

Callers

nothing calls this directly

Calls 3

getUniqueIdFunction · 0.90
arrayMapFunction · 0.90
useSliceIdsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…