(t0)
| 9 | onComplete: () => void; |
| 10 | }; |
| 11 | export function IdeAutoConnectDialog(t0) { |
| 12 | const $ = _c(9); |
| 13 | const { |
| 14 | onComplete |
| 15 | } = t0; |
| 16 | let t1; |
| 17 | if ($[0] !== onComplete) { |
| 18 | t1 = async value => { |
| 19 | const autoConnect = value === "yes"; |
| 20 | saveGlobalConfig(current => ({ |
| 21 | ...current, |
| 22 | autoConnectIde: autoConnect, |
| 23 | hasIdeAutoConnectDialogBeenShown: true |
| 24 | })); |
| 25 | onComplete(); |
| 26 | }; |
| 27 | $[0] = onComplete; |
| 28 | $[1] = t1; |
| 29 | } else { |
| 30 | t1 = $[1]; |
| 31 | } |
| 32 | const handleSelect = t1; |
| 33 | let t2; |
| 34 | if ($[2] === Symbol.for("react.memo_cache_sentinel")) { |
| 35 | t2 = [{ |
| 36 | label: "Yes", |
| 37 | value: "yes" |
| 38 | }, { |
| 39 | label: "No", |
| 40 | value: "no" |
| 41 | }]; |
| 42 | $[2] = t2; |
| 43 | } else { |
| 44 | t2 = $[2]; |
| 45 | } |
| 46 | const options = t2; |
| 47 | let t3; |
| 48 | if ($[3] !== handleSelect) { |
| 49 | t3 = <Select options={options} onChange={handleSelect} defaultValue="yes" />; |
| 50 | $[3] = handleSelect; |
| 51 | $[4] = t3; |
| 52 | } else { |
| 53 | t3 = $[4]; |
| 54 | } |
| 55 | let t4; |
| 56 | if ($[5] === Symbol.for("react.memo_cache_sentinel")) { |
| 57 | t4 = <Text dimColor={true}>You can also configure this in /config or with the --ide flag</Text>; |
| 58 | $[5] = t4; |
| 59 | } else { |
| 60 | t4 = $[5]; |
| 61 | } |
| 62 | let t5; |
| 63 | if ($[6] !== onComplete || $[7] !== t3) { |
| 64 | t5 = <Dialog title="Do you wish to enable auto-connect to IDE?" color="ide" onCancel={onComplete}>{t3}{t4}</Dialog>; |
| 65 | $[6] = onComplete; |
| 66 | $[7] = t3; |
| 67 | $[8] = t5; |
| 68 | } else { |
nothing calls this directly
no test coverage detected