(props: OnDoneProp & TableProps)
| 391 | }; |
| 392 | |
| 393 | const CloneTable = (props: OnDoneProp & TableProps) => { |
| 394 | const store = useStoreOrStoreById(props.store)(); |
| 395 | const has = useHasTableCallback(store); |
| 396 | return NewId({ |
| 397 | onDone: props.onDone, |
| 398 | suggestedId: getNewIdFromSuggestedId(props.tableId, has), |
| 399 | has, |
| 400 | set: useSetTableCallback( |
| 401 | (tableId) => tableId, |
| 402 | (_, store) => store.getTable(props.tableId), |
| 403 | store, |
| 404 | ), |
| 405 | prompt: 'Clone table to', |
| 406 | }); |
| 407 | }; |
| 408 | |
| 409 | const DeleteTable = (props: OnDoneProp & TableProps) => |
| 410 | Delete({ |
nothing calls this directly
no test coverage detected
searching dependent graphs…