(t0)
| 26 | isStandaloneCommand?: boolean; |
| 27 | }; |
| 28 | export function OutputStylePicker(t0) { |
| 29 | const $ = _c(16); |
| 30 | const { |
| 31 | initialStyle, |
| 32 | onComplete, |
| 33 | onCancel, |
| 34 | isStandaloneCommand |
| 35 | } = t0; |
| 36 | let t1; |
| 37 | if ($[0] === Symbol.for("react.memo_cache_sentinel")) { |
| 38 | t1 = []; |
| 39 | $[0] = t1; |
| 40 | } else { |
| 41 | t1 = $[0]; |
| 42 | } |
| 43 | const [styleOptions, setStyleOptions] = useState(t1); |
| 44 | const [isLoading, setIsLoading] = useState(true); |
| 45 | let t2; |
| 46 | let t3; |
| 47 | if ($[1] === Symbol.for("react.memo_cache_sentinel")) { |
| 48 | t2 = () => { |
| 49 | getAllOutputStyles(getCwd()).then(allStyles => { |
| 50 | const options = mapConfigsToOptions(allStyles); |
| 51 | setStyleOptions(options); |
| 52 | setIsLoading(false); |
| 53 | }).catch(() => { |
| 54 | const builtInOptions = mapConfigsToOptions(OUTPUT_STYLE_CONFIG); |
| 55 | setStyleOptions(builtInOptions); |
| 56 | setIsLoading(false); |
| 57 | }); |
| 58 | }; |
| 59 | t3 = []; |
| 60 | $[1] = t2; |
| 61 | $[2] = t3; |
| 62 | } else { |
| 63 | t2 = $[1]; |
| 64 | t3 = $[2]; |
| 65 | } |
| 66 | useEffect(t2, t3); |
| 67 | let t4; |
| 68 | if ($[3] !== onComplete) { |
| 69 | t4 = style => { |
| 70 | const outputStyle = style as OutputStyle; |
| 71 | onComplete(outputStyle); |
| 72 | }; |
| 73 | $[3] = onComplete; |
| 74 | $[4] = t4; |
| 75 | } else { |
| 76 | t4 = $[4]; |
| 77 | } |
| 78 | const handleStyleSelect = t4; |
| 79 | const t5 = !isStandaloneCommand; |
| 80 | const t6 = !isStandaloneCommand; |
| 81 | let t7; |
| 82 | if ($[5] === Symbol.for("react.memo_cache_sentinel")) { |
| 83 | t7 = <Box marginTop={1}><Text dimColor={true}>This changes how Claude Code communicates with you</Text></Box>; |
| 84 | $[5] = t7; |
| 85 | } else { |
nothing calls this directly
no test coverage detected