(t0)
| 16 | * with the ability to cancel via ESC key |
| 17 | */ |
| 18 | export function AutoRunIssueNotification(t0) { |
| 19 | const $ = _c(8); |
| 20 | const { |
| 21 | onRun, |
| 22 | onCancel, |
| 23 | reason |
| 24 | } = t0; |
| 25 | const hasRunRef = useRef(false); |
| 26 | let t1; |
| 27 | if ($[0] === Symbol.for("react.memo_cache_sentinel")) { |
| 28 | t1 = { |
| 29 | context: "Confirmation" |
| 30 | }; |
| 31 | $[0] = t1; |
| 32 | } else { |
| 33 | t1 = $[0]; |
| 34 | } |
| 35 | useKeybinding("confirm:no", onCancel, t1); |
| 36 | let t2; |
| 37 | let t3; |
| 38 | if ($[1] !== onRun) { |
| 39 | t2 = () => { |
| 40 | if (!hasRunRef.current) { |
| 41 | hasRunRef.current = true; |
| 42 | onRun(); |
| 43 | } |
| 44 | }; |
| 45 | t3 = [onRun]; |
| 46 | $[1] = onRun; |
| 47 | $[2] = t2; |
| 48 | $[3] = t3; |
| 49 | } else { |
| 50 | t2 = $[2]; |
| 51 | t3 = $[3]; |
| 52 | } |
| 53 | useEffect(t2, t3); |
| 54 | let t4; |
| 55 | if ($[4] === Symbol.for("react.memo_cache_sentinel")) { |
| 56 | t4 = <Box><Text bold={true}>Running feedback capture...</Text></Box>; |
| 57 | $[4] = t4; |
| 58 | } else { |
| 59 | t4 = $[4]; |
| 60 | } |
| 61 | let t5; |
| 62 | if ($[5] === Symbol.for("react.memo_cache_sentinel")) { |
| 63 | t5 = <Box><Text dimColor={true}>Press <KeyboardShortcutHint shortcut="Esc" action="cancel" /> anytime</Text></Box>; |
| 64 | $[5] = t5; |
| 65 | } else { |
| 66 | t5 = $[5]; |
| 67 | } |
| 68 | let t6; |
| 69 | if ($[6] !== reason) { |
| 70 | t6 = <Box flexDirection="column" marginTop={1}>{t4}{t5}<Box><Text dimColor={true}>Reason: {reason}</Text></Box></Box>; |
| 71 | $[6] = reason; |
| 72 | $[7] = t6; |
| 73 | } else { |
| 74 | t6 = $[7]; |
| 75 | } |
nothing calls this directly
no test coverage detected