({
indexId,
sliceId,
indexes,
editable,
customCells,
extraCellsBefore,
extraCellsAfter,
...props
}: SliceInHtmlTableProps & HtmlTableProps)
| 20 | import {EditableCellView} from './EditableCellView.tsx'; |
| 21 | |
| 22 | export const SliceInHtmlTable: typeof SliceInHtmlTableDecl = ({ |
| 23 | indexId, |
| 24 | sliceId, |
| 25 | indexes, |
| 26 | editable, |
| 27 | customCells, |
| 28 | extraCellsBefore, |
| 29 | extraCellsAfter, |
| 30 | ...props |
| 31 | }: SliceInHtmlTableProps & HtmlTableProps): any => { |
| 32 | const [resolvedIndexes, store, tableId] = getIndexStoreTableId( |
| 33 | useIndexesOrIndexesById(indexes), |
| 34 | indexId, |
| 35 | ); |
| 36 | return ( |
| 37 | <HtmlTable |
| 38 | {...props} |
| 39 | params={useParams( |
| 40 | useCells( |
| 41 | useTableCellIds(tableId as Id, store), |
| 42 | customCells, |
| 43 | editable ? EditableCellView : CellView, |
| 44 | ), |
| 45 | useStoreCellComponentProps(store, tableId as Id), |
| 46 | useSliceRowIds(indexId, sliceId, resolvedIndexes), |
| 47 | extraCellsBefore, |
| 48 | extraCellsAfter, |
| 49 | )} |
| 50 | /> |
| 51 | ); |
| 52 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…