(t0)
| 10 | onAccept(): void; |
| 11 | }; |
| 12 | export function DevChannelsDialog(t0) { |
| 13 | const $ = _c(14); |
| 14 | const { |
| 15 | channels, |
| 16 | onAccept |
| 17 | } = t0; |
| 18 | let t1; |
| 19 | if ($[0] !== onAccept) { |
| 20 | t1 = function onChange(value) { |
| 21 | bb2: switch (value) { |
| 22 | case "accept": |
| 23 | { |
| 24 | onAccept(); |
| 25 | break bb2; |
| 26 | } |
| 27 | case "exit": |
| 28 | { |
| 29 | gracefulShutdownSync(1); |
| 30 | } |
| 31 | } |
| 32 | }; |
| 33 | $[0] = onAccept; |
| 34 | $[1] = t1; |
| 35 | } else { |
| 36 | t1 = $[1]; |
| 37 | } |
| 38 | const onChange = t1; |
| 39 | const handleEscape = _temp; |
| 40 | let t2; |
| 41 | let t3; |
| 42 | if ($[2] === Symbol.for("react.memo_cache_sentinel")) { |
| 43 | t2 = <Text>--dangerously-load-development-channels is for local channel development only. Do not use this option to run channels you have downloaded off the internet.</Text>; |
| 44 | t3 = <Text>Please use --channels to run a list of approved channels.</Text>; |
| 45 | $[2] = t2; |
| 46 | $[3] = t3; |
| 47 | } else { |
| 48 | t2 = $[2]; |
| 49 | t3 = $[3]; |
| 50 | } |
| 51 | let t4; |
| 52 | if ($[4] !== channels) { |
| 53 | t4 = channels.map(_temp2).join(", "); |
| 54 | $[4] = channels; |
| 55 | $[5] = t4; |
| 56 | } else { |
| 57 | t4 = $[5]; |
| 58 | } |
| 59 | let t5; |
| 60 | if ($[6] !== t4) { |
| 61 | t5 = <Box flexDirection="column" gap={1}>{t2}{t3}<Text dimColor={true}>Channels:{" "}{t4}</Text></Box>; |
| 62 | $[6] = t4; |
| 63 | $[7] = t5; |
| 64 | } else { |
| 65 | t5 = $[7]; |
| 66 | } |
| 67 | let t6; |
| 68 | if ($[8] === Symbol.for("react.memo_cache_sentinel")) { |
| 69 | t6 = [{ |
nothing calls this directly
no test coverage detected