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