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

Function resultTableView

src/ui-solid/common/index.tsx:64–86  ·  view source on GitHub ↗
(
  props: ResultTableProps,
  rowIds: MaybeAccessor<Ids>,
)

Source from the content-addressed store, hash-verified

62};
63
64export const resultTableView = (
65 props: ResultTableProps,
66 rowIds: MaybeAccessor<Ids>,
67): JSXElement => {
68 const content = () => {
69 const ResultRow = props.resultRowComponent ?? ResultRowView;
70 return wrap(
71 arrayMap(getValue(rowIds), (rowId) => (
72 <ResultRow
73 {...getProps(props.getResultRowComponentProps, rowId)}
74 queryId={props.queryId}
75 rowId={rowId}
76 queries={props.queries}
77 debugIds={props.debugIds}
78 />
79 )),
80 props.separator,
81 props.debugIds,
82 props.queryId,
83 );
84 };
85 return <>{content()}</>;
86};
87
88export const useComponentPerRow = (
89 props: (RemoteRowProps | LocalRowsProps | LinkedRowsProps) & {

Callers 2

ResultSortedTableViewFunction · 0.90
ResultTableViewFunction · 0.90

Calls 1

contentFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…