(t0)
| 78 | onComplete: (disableAutoConnect: boolean) => void; |
| 79 | }; |
| 80 | export function IdeDisableAutoConnectDialog(t0) { |
| 81 | const $ = _c(10); |
| 82 | const { |
| 83 | onComplete |
| 84 | } = t0; |
| 85 | let t1; |
| 86 | if ($[0] !== onComplete) { |
| 87 | t1 = value => { |
| 88 | const disableAutoConnect = value === "yes"; |
| 89 | if (disableAutoConnect) { |
| 90 | saveGlobalConfig(_temp); |
| 91 | } |
| 92 | onComplete(disableAutoConnect); |
| 93 | }; |
| 94 | $[0] = onComplete; |
| 95 | $[1] = t1; |
| 96 | } else { |
| 97 | t1 = $[1]; |
| 98 | } |
| 99 | const handleSelect = t1; |
| 100 | let t2; |
| 101 | if ($[2] !== onComplete) { |
| 102 | t2 = () => { |
| 103 | onComplete(false); |
| 104 | }; |
| 105 | $[2] = onComplete; |
| 106 | $[3] = t2; |
| 107 | } else { |
| 108 | t2 = $[3]; |
| 109 | } |
| 110 | const handleCancel = t2; |
| 111 | let t3; |
| 112 | if ($[4] === Symbol.for("react.memo_cache_sentinel")) { |
| 113 | t3 = [{ |
| 114 | label: "No", |
| 115 | value: "no" |
| 116 | }, { |
| 117 | label: "Yes", |
| 118 | value: "yes" |
| 119 | }]; |
| 120 | $[4] = t3; |
| 121 | } else { |
| 122 | t3 = $[4]; |
| 123 | } |
| 124 | const options = t3; |
| 125 | let t4; |
| 126 | if ($[5] !== handleSelect) { |
| 127 | t4 = <Select options={options} onChange={handleSelect} defaultValue="no" />; |
| 128 | $[5] = handleSelect; |
| 129 | $[6] = t4; |
| 130 | } else { |
| 131 | t4 = $[6]; |
| 132 | } |
| 133 | let t5; |
| 134 | if ($[7] !== handleCancel || $[8] !== t4) { |
| 135 | t5 = <Dialog title="Do you wish to disable auto-connect to IDE?" subtitle="You can also configure this in /config" onCancel={handleCancel} color="ide">{t4}</Dialog>; |
| 136 | $[7] = handleCancel; |
| 137 | $[8] = t4; |
nothing calls this directly
no test coverage detected