({
indexId,
sliceId,
indexes,
rowComponent: Row = RowView,
getRowComponentProps,
separator,
debugIds,
}: SliceProps)
| 10 | import {RowView} from './RowView.tsx'; |
| 11 | |
| 12 | export const SliceView: typeof SliceViewDecl = ({ |
| 13 | indexId, |
| 14 | sliceId, |
| 15 | indexes, |
| 16 | rowComponent: Row = RowView, |
| 17 | getRowComponentProps, |
| 18 | separator, |
| 19 | debugIds, |
| 20 | }: SliceProps): any => { |
| 21 | const [resolvedIndexes, store, tableId] = getIndexStoreTableId( |
| 22 | useIndexesOrIndexesById(indexes), |
| 23 | indexId, |
| 24 | ); |
| 25 | const rowIds = useSliceRowIds(indexId, sliceId, resolvedIndexes); |
| 26 | return ( |
| 27 | <Wrap separator={separator} debugIds={debugIds} id={sliceId}> |
| 28 | {arrayMap(rowIds, (rowId) => ( |
| 29 | <Row |
| 30 | key={rowId} |
| 31 | {...getProps(getRowComponentProps, rowId)} |
| 32 | tableId={tableId as Id} |
| 33 | rowId={rowId} |
| 34 | store={store} |
| 35 | debugIds={debugIds} |
| 36 | /> |
| 37 | ))} |
| 38 | </Wrap> |
| 39 | ); |
| 40 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…