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

Function tableView

src/ui-react/common/index.tsx:33–58  ·  view source on GitHub ↗
(
  {
    tableId,
    store,
    rowComponent: Row = RowView,
    getRowComponentProps,
    customCellIds,
    separator,
    debugIds,
  }: TableProps,
  rowIds: Ids,
)

Source from the content-addressed store, hash-verified

31export type ExtraThingsById = ThingsById<ThingsByOffset>;
32
33export const tableView = (
34 {
35 tableId,
36 store,
37 rowComponent: Row = RowView,
38 getRowComponentProps,
39 customCellIds,
40 separator,
41 debugIds,
42 }: TableProps,
43 rowIds: Ids,
44): any => (
45 <Wrap separator={separator} debugIds={debugIds} id={tableId}>
46 {arrayMap(rowIds, (rowId) => (
47 <Row
48 key={rowId}
49 {...getProps(getRowComponentProps, rowId)}
50 tableId={tableId}
51 rowId={rowId}
52 customCellIds={customCellIds}
53 store={store}
54 debugIds={debugIds}
55 />
56 ))}
57 </Wrap>
58);
59
60export const resultTableView = (
61 {

Callers 2

SortedTableViewFunction · 0.90
TableViewFunction · 0.90

Calls 2

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…