MCPcopy Index your code
hub / github.com/codeaashu/claude-code / InvalidConfigDialog

Function InvalidConfigDialog

src/components/InvalidConfigDialog.tsx:25–114  ·  view source on GitHub ↗

* Dialog shown when the Claude config file contains invalid JSON

(t0)

Source from the content-addressed store, hash-verified

23 * Dialog shown when the Claude config file contains invalid JSON
24 */
25function InvalidConfigDialog(t0) {
26 const $ = _c(19);
27 const {
28 filePath,
29 errorDescription,
30 onExit,
31 onReset
32 } = t0;
33 let t1;
34 if ($[0] !== onExit || $[1] !== onReset) {
35 t1 = value => {
36 if (value === "exit") {
37 onExit();
38 } else {
39 onReset();
40 }
41 };
42 $[0] = onExit;
43 $[1] = onReset;
44 $[2] = t1;
45 } else {
46 t1 = $[2];
47 }
48 const handleSelect = t1;
49 let t2;
50 if ($[3] !== filePath) {
51 t2 = <Text>The configuration file at <Text bold={true}>{filePath}</Text> contains invalid JSON.</Text>;
52 $[3] = filePath;
53 $[4] = t2;
54 } else {
55 t2 = $[4];
56 }
57 let t3;
58 if ($[5] !== errorDescription) {
59 t3 = <Text>{errorDescription}</Text>;
60 $[5] = errorDescription;
61 $[6] = t3;
62 } else {
63 t3 = $[6];
64 }
65 let t4;
66 if ($[7] !== t2 || $[8] !== t3) {
67 t4 = <Box flexDirection="column" gap={1}>{t2}{t3}</Box>;
68 $[7] = t2;
69 $[8] = t3;
70 $[9] = t4;
71 } else {
72 t4 = $[9];
73 }
74 let t5;
75 if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
76 t5 = <Text bold={true}>Choose an option:</Text>;
77 $[10] = t5;
78 } else {
79 t5 = $[10];
80 }
81 let t6;
82 if ($[11] === Symbol.for("react.memo_cache_sentinel")) {

Callers

nothing calls this directly

Calls 1

onExitFunction · 0.85

Tested by

no test coverage detected