(props: OnDoneProp & RowProps)
| 430 | }); |
| 431 | |
| 432 | const AddCell = (props: OnDoneProp & RowProps) => { |
| 433 | const store = useStoreOrStoreById(props.store)(); |
| 434 | const has = (cellId: Id) => |
| 435 | store?.hasCell(props.tableId, props.rowId, cellId) ?? false; |
| 436 | return NewId({ |
| 437 | onDone: props.onDone, |
| 438 | suggestedId: getNewIdFromSuggestedId('cell', has), |
| 439 | has, |
| 440 | set: useSetCellCallback( |
| 441 | props.tableId, |
| 442 | props.rowId, |
| 443 | (newId: Id) => newId, |
| 444 | () => '', |
| 445 | store, |
| 446 | ), |
| 447 | prompt: 'Add cell', |
| 448 | }); |
| 449 | }; |
| 450 | |
| 451 | const CloneRow = (props: OnDoneProp & RowProps) => { |
| 452 | const store = useStoreOrStoreById(props.store)(); |
nothing calls this directly
no test coverage detected
searching dependent graphs…