(t0)
| 13 | onAbort: () => void; |
| 14 | }; |
| 15 | export function PromptDialog(t0) { |
| 16 | const $ = _c(15); |
| 17 | const { |
| 18 | title, |
| 19 | toolInputSummary, |
| 20 | request, |
| 21 | onRespond, |
| 22 | onAbort |
| 23 | } = t0; |
| 24 | let t1; |
| 25 | if ($[0] === Symbol.for("react.memo_cache_sentinel")) { |
| 26 | t1 = { |
| 27 | isActive: true |
| 28 | }; |
| 29 | $[0] = t1; |
| 30 | } else { |
| 31 | t1 = $[0]; |
| 32 | } |
| 33 | useKeybinding("app:interrupt", onAbort, t1); |
| 34 | let t2; |
| 35 | if ($[1] !== request.options) { |
| 36 | t2 = request.options.map(_temp); |
| 37 | $[1] = request.options; |
| 38 | $[2] = t2; |
| 39 | } else { |
| 40 | t2 = $[2]; |
| 41 | } |
| 42 | const options = t2; |
| 43 | let t3; |
| 44 | if ($[3] !== toolInputSummary) { |
| 45 | t3 = toolInputSummary ? <Text dimColor={true}>{toolInputSummary}</Text> : undefined; |
| 46 | $[3] = toolInputSummary; |
| 47 | $[4] = t3; |
| 48 | } else { |
| 49 | t3 = $[4]; |
| 50 | } |
| 51 | let t4; |
| 52 | if ($[5] !== onRespond) { |
| 53 | t4 = value => { |
| 54 | onRespond(value); |
| 55 | }; |
| 56 | $[5] = onRespond; |
| 57 | $[6] = t4; |
| 58 | } else { |
| 59 | t4 = $[6]; |
| 60 | } |
| 61 | let t5; |
| 62 | if ($[7] !== options || $[8] !== t4) { |
| 63 | t5 = <Box flexDirection="column" paddingY={1}><Select options={options} onChange={t4} /></Box>; |
| 64 | $[7] = options; |
| 65 | $[8] = t4; |
| 66 | $[9] = t5; |
| 67 | } else { |
| 68 | t5 = $[9]; |
| 69 | } |
| 70 | let t6; |
| 71 | if ($[10] !== request.message || $[11] !== t3 || $[12] !== t5 || $[13] !== title) { |
| 72 | t6 = <PermissionDialog title={title} subtitle={request.message} titleRight={t3}>{t5}</PermissionDialog>; |
nothing calls this directly
no test coverage detected