( props: ResultTableProps, rowIds: MaybeAccessor<Ids>, )
| 62 | }; |
| 63 | |
| 64 | export 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 | |
| 88 | export const useComponentPerRow = ( |
| 89 | props: (RemoteRowProps | LocalRowsProps | LinkedRowsProps) & { |
no test coverage detected
searching dependent graphs…