(props: OnDoneProp & TablesProps)
| 335 | ); |
| 336 | |
| 337 | const AddTable = (props: OnDoneProp & TablesProps) => { |
| 338 | const has = useHasTableCallback(props.store); |
| 339 | return NewId({ |
| 340 | onDone: props.onDone, |
| 341 | suggestedId: getNewIdFromSuggestedId('table', has), |
| 342 | has, |
| 343 | set: useSetTableCallback( |
| 344 | (newId: Id) => newId, |
| 345 | () => ({row: {cell: ''}}), |
| 346 | props.store, |
| 347 | ), |
| 348 | prompt: 'Add table', |
| 349 | }); |
| 350 | }; |
| 351 | |
| 352 | const DeleteTables = (props: OnDoneProp & TablesProps) => |
| 353 | Delete({ |
nothing calls this directly
no test coverage detected
searching dependent graphs…