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