MCPcopy
hub / github.com/tinyplex/tinybase / IndexView

Function IndexView

src/ui-react/IndexView.tsx:11–31  ·  view source on GitHub ↗
({
  indexId,
  indexes,
  sliceComponent: Slice = SliceView,
  getSliceComponentProps,
  separator,
  debugIds,
}: IndexProps)

Source from the content-addressed store, hash-verified

9import {SliceView} from './SliceView.tsx';
10
11export const IndexView: typeof IndexViewDecl = ({
12 indexId,
13 indexes,
14 sliceComponent: Slice = SliceView,
15 getSliceComponentProps,
16 separator,
17 debugIds,
18}: IndexProps): any => (
19 <Wrap separator={separator} debugIds={debugIds} id={indexId}>
20 {arrayMap(useSliceIds(indexId, indexes), (sliceId) => (
21 <Slice
22 key={sliceId}
23 {...getProps(getSliceComponentProps, sliceId)}
24 indexId={indexId}
25 sliceId={sliceId}
26 indexes={indexes}
27 debugIds={debugIds}
28 />
29 ))}
30 </Wrap>
31);

Callers

nothing calls this directly

Calls 3

arrayMapFunction · 0.90
useSliceIdsFunction · 0.90
getPropsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…