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

Function RowView

src/ui-react/RowView.tsx:11–37  ·  view source on GitHub ↗
({
  tableId,
  rowId,
  store,
  cellComponent: Cell = CellView,
  getCellComponentProps,
  customCellIds,
  separator,
  debugIds,
}: RowProps)

Source from the content-addressed store, hash-verified

9import {Wrap} from './common/Wrap.tsx';
10
11export const RowView: typeof RowViewDecl = ({
12 tableId,
13 rowId,
14 store,
15 cellComponent: Cell = CellView,
16 getCellComponentProps,
17 customCellIds,
18 separator,
19 debugIds,
20}: RowProps): any => (
21 <Wrap separator={separator} debugIds={debugIds} id={rowId}>
22 {arrayMap(
23 useCustomOrDefaultCellIds(customCellIds, tableId, rowId, store),
24 (cellId) => (
25 <Cell
26 key={cellId}
27 {...getProps(getCellComponentProps, cellId)}
28 tableId={tableId}
29 rowId={rowId}
30 cellId={cellId}
31 store={store}
32 debugIds={debugIds}
33 />
34 ),
35 )}
36 </Wrap>
37);

Callers

nothing calls this directly

Calls 3

arrayMapFunction · 0.90
getPropsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…