(props: OnDoneProp & ValueProps)
| 546 | }); |
| 547 | |
| 548 | const CloneValue = (props: OnDoneProp & ValueProps) => { |
| 549 | const has = useHasValueCallback(props.store); |
| 550 | return NewId({ |
| 551 | onDone: props.onDone, |
| 552 | suggestedId: getNewIdFromSuggestedId(props.valueId, has), |
| 553 | has, |
| 554 | set: useSetValueCallback( |
| 555 | (newId: Id) => newId, |
| 556 | (_, store) => store.getValue(props.valueId) ?? '', |
| 557 | props.store, |
| 558 | ), |
| 559 | prompt: 'Clone value to', |
| 560 | }); |
| 561 | }; |
| 562 | |
| 563 | const DeleteValue = (props: OnDoneProp & ValueProps) => |
| 564 | Delete({ |
nothing calls this directly
no test coverage detected
searching dependent graphs…