({
onDone,
tableId,
store: storeOrStoreId,
}: OnDoneProp & TableProps)
| 104 | }; |
| 105 | |
| 106 | const CloneTable = ({ |
| 107 | onDone, |
| 108 | tableId, |
| 109 | store: storeOrStoreId, |
| 110 | }: OnDoneProp & TableProps) => { |
| 111 | const store = useStoreOrStoreById(storeOrStoreId)!; |
| 112 | const has = useHasTableCallback(store); |
| 113 | return ( |
| 114 | <NewId |
| 115 | onDone={onDone} |
| 116 | suggestedId={getNewIdFromSuggestedId(tableId, has)} |
| 117 | has={has} |
| 118 | set={useSetTableCallback( |
| 119 | (tableId) => tableId, |
| 120 | (_, store) => store.getTable(tableId), |
| 121 | )} |
| 122 | prompt="Clone table to" |
| 123 | /> |
| 124 | ); |
| 125 | }; |
| 126 | |
| 127 | const DeleteTable = ({onDone, tableId, store}: OnDoneProp & TableProps) => ( |
| 128 | <Delete |
nothing calls this directly
no test coverage detected
searching dependent graphs…