MCPcopy Create free account
hub / github.com/codeaashu/claude-code / ChannelDowngradeDialog

Function ChannelDowngradeDialog

src/components/ChannelDowngradeDialog.tsx:16–101  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

14 * Allows user to choose whether to downgrade or stay on current version.
15 */
16export function ChannelDowngradeDialog(t0) {
17 const $ = _c(17);
18 const {
19 currentVersion,
20 onChoice
21 } = t0;
22 let t1;
23 if ($[0] !== onChoice) {
24 t1 = function handleSelect(value) {
25 onChoice(value);
26 };
27 $[0] = onChoice;
28 $[1] = t1;
29 } else {
30 t1 = $[1];
31 }
32 const handleSelect = t1;
33 let t2;
34 if ($[2] !== onChoice) {
35 t2 = function handleCancel() {
36 onChoice("cancel");
37 };
38 $[2] = onChoice;
39 $[3] = t2;
40 } else {
41 t2 = $[3];
42 }
43 const handleCancel = t2;
44 let t3;
45 if ($[4] !== currentVersion) {
46 t3 = <Text>The stable channel may have an older version than what you're currently running ({currentVersion}).</Text>;
47 $[4] = currentVersion;
48 $[5] = t3;
49 } else {
50 t3 = $[5];
51 }
52 let t4;
53 if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
54 t4 = <Text dimColor={true}>How would you like to handle this?</Text>;
55 $[6] = t4;
56 } else {
57 t4 = $[6];
58 }
59 let t5;
60 if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
61 t5 = {
62 label: "Allow possible downgrade to stable version",
63 value: "downgrade" as ChannelDowngradeChoice
64 };
65 $[7] = t5;
66 } else {
67 t5 = $[7];
68 }
69 const t6 = `Stay on current version (${currentVersion}) until stable catches up`;
70 let t7;
71 if ($[8] !== t6) {
72 t7 = [t5, {
73 label: t6,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected