MCPcopy Create free account
hub / github.com/freecodexyz/free-code / ErrorStep

Function ErrorStep

src/commands/install-github-app/ErrorStep.tsx:10–81  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

8 errorInstructions?: string[];
9}
10export function ErrorStep(t0) {
11 const $ = _c(15);
12 const {
13 error,
14 errorReason,
15 errorInstructions
16 } = t0;
17 let t1;
18 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
19 t1 = <Box flexDirection="column" marginBottom={1}><Text bold={true}>Install GitHub App</Text></Box>;
20 $[0] = t1;
21 } else {
22 t1 = $[0];
23 }
24 let t2;
25 if ($[1] !== error) {
26 t2 = <Text color="error">Error: {error}</Text>;
27 $[1] = error;
28 $[2] = t2;
29 } else {
30 t2 = $[2];
31 }
32 let t3;
33 if ($[3] !== errorReason) {
34 t3 = errorReason && <Box marginTop={1}><Text dimColor={true}>Reason: {errorReason}</Text></Box>;
35 $[3] = errorReason;
36 $[4] = t3;
37 } else {
38 t3 = $[4];
39 }
40 let t4;
41 if ($[5] !== errorInstructions) {
42 t4 = errorInstructions && errorInstructions.length > 0 && <Box flexDirection="column" marginTop={1}><Text dimColor={true}>How to fix:</Text>{errorInstructions.map(_temp)}</Box>;
43 $[5] = errorInstructions;
44 $[6] = t4;
45 } else {
46 t4 = $[6];
47 }
48 let t5;
49 if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
50 t5 = <Box marginTop={1}><Text dimColor={true}>For manual setup instructions, see:{" "}<Text color="claude">{GITHUB_ACTION_SETUP_DOCS_URL}</Text></Text></Box>;
51 $[7] = t5;
52 } else {
53 t5 = $[7];
54 }
55 let t6;
56 if ($[8] !== t2 || $[9] !== t3 || $[10] !== t4) {
57 t6 = <Box flexDirection="column" borderStyle="round" paddingX={1}>{t1}{t2}{t3}{t4}{t5}</Box>;
58 $[8] = t2;
59 $[9] = t3;
60 $[10] = t4;
61 $[11] = t6;
62 } else {
63 t6 = $[11];
64 }
65 let t7;
66 if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
67 t7 = <Box marginLeft={3}><Text dimColor={true}>Press any key to exit</Text></Box>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected