( props: TableProps, rowIds: MaybeAccessor<Ids>, )
| 37 | export type ExtraThingsById = ThingsById<ThingsByOffset>; |
| 38 | |
| 39 | export const tableView = ( |
| 40 | props: TableProps, |
| 41 | rowIds: MaybeAccessor<Ids>, |
| 42 | ): JSXElement => { |
| 43 | const content = () => { |
| 44 | const Row = props.rowComponent ?? RowView; |
| 45 | return wrap( |
| 46 | arrayMap(getValue(rowIds), (rowId) => ( |
| 47 | <Row |
| 48 | {...getProps(props.getRowComponentProps, rowId)} |
| 49 | tableId={props.tableId} |
| 50 | rowId={rowId} |
| 51 | customCellIds={props.customCellIds} |
| 52 | store={props.store} |
| 53 | debugIds={props.debugIds} |
| 54 | /> |
| 55 | )), |
| 56 | props.separator, |
| 57 | props.debugIds, |
| 58 | props.tableId, |
| 59 | ); |
| 60 | }; |
| 61 | return <>{content()}</>; |
| 62 | }; |
| 63 | |
| 64 | export const resultTableView = ( |
| 65 | props: ResultTableProps, |
no test coverage detected
searching dependent graphs…