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

Function RowView

src/ui-solid/RowView.tsx:11–37  ·  view source on GitHub ↗
(props: RowProps)

Source from the content-addressed store, hash-verified

9import {wrap} from './common/wrap.tsx';
10
11export const RowView = (props: RowProps): JSXElement => {
12 const cellIds = useCustomOrDefaultCellIds(
13 () => props.customCellIds,
14 () => props.tableId,
15 () => props.rowId,
16 () => props.store,
17 );
18 const content = () => {
19 const Cell = props.cellComponent ?? CellView;
20 return wrap(
21 arrayMap(getValue(cellIds) as Id[], (cellId: Id) => (
22 <Cell
23 {...getProps(props.getCellComponentProps, cellId)}
24 tableId={props.tableId}
25 rowId={props.rowId}
26 cellId={cellId}
27 store={props.store}
28 debugIds={props.debugIds}
29 />
30 )),
31 props.separator,
32 props.debugIds,
33 props.rowId,
34 );
35 };
36 return <>{content()}</>;
37};

Callers

nothing calls this directly

Calls 2

contentFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…