(t0)
| 10 | onContinue: () => void; |
| 11 | } |
| 12 | export function WarningsStep(t0) { |
| 13 | const $ = _c(8); |
| 14 | const { |
| 15 | warnings, |
| 16 | onContinue |
| 17 | } = t0; |
| 18 | let t1; |
| 19 | if ($[0] === Symbol.for("react.memo_cache_sentinel")) { |
| 20 | t1 = { |
| 21 | context: "Confirmation" |
| 22 | }; |
| 23 | $[0] = t1; |
| 24 | } else { |
| 25 | t1 = $[0]; |
| 26 | } |
| 27 | useKeybinding("confirm:yes", onContinue, t1); |
| 28 | let t2; |
| 29 | if ($[1] === Symbol.for("react.memo_cache_sentinel")) { |
| 30 | t2 = <Box flexDirection="column" marginBottom={1}><Text bold={true}>{figures.warning} Setup Warnings</Text><Text dimColor={true}>We found some potential issues, but you can continue anyway</Text></Box>; |
| 31 | $[1] = t2; |
| 32 | } else { |
| 33 | t2 = $[1]; |
| 34 | } |
| 35 | let t3; |
| 36 | if ($[2] !== warnings) { |
| 37 | t3 = warnings.map(_temp2); |
| 38 | $[2] = warnings; |
| 39 | $[3] = t3; |
| 40 | } else { |
| 41 | t3 = $[3]; |
| 42 | } |
| 43 | let t4; |
| 44 | if ($[4] === Symbol.for("react.memo_cache_sentinel")) { |
| 45 | t4 = <Box marginTop={1}><Text bold={true} color="permission">Press Enter to continue anyway, or Ctrl+C to exit and fix issues</Text></Box>; |
| 46 | $[4] = t4; |
| 47 | } else { |
| 48 | t4 = $[4]; |
| 49 | } |
| 50 | let t5; |
| 51 | if ($[5] === Symbol.for("react.memo_cache_sentinel")) { |
| 52 | t5 = <Box marginTop={1}><Text dimColor={true}>You can also try the manual setup steps if needed:{" "}<Text color="claude">{GITHUB_ACTION_SETUP_DOCS_URL}</Text></Text></Box>; |
| 53 | $[5] = t5; |
| 54 | } else { |
| 55 | t5 = $[5]; |
| 56 | } |
| 57 | let t6; |
| 58 | if ($[6] !== t3) { |
| 59 | t6 = <><Box flexDirection="column" borderStyle="round" paddingX={1}>{t2}{t3}{t4}{t5}</Box></>; |
| 60 | $[6] = t3; |
| 61 | $[7] = t6; |
| 62 | } else { |
| 63 | t6 = $[7]; |
| 64 | } |
| 65 | return t6; |
| 66 | } |
| 67 | function _temp2(warning, index) { |
| 68 | return <Box key={index} flexDirection="column" marginBottom={1}><Text color="warning" bold={true}>{warning.title}</Text><Text>{warning.message}</Text>{warning.instructions.length > 0 && <Box flexDirection="column" marginLeft={2} marginTop={1}>{warning.instructions.map(_temp)}</Box>}</Box>; |
| 69 | } |
nothing calls this directly
no test coverage detected