(t0)
| 102 | * </ListItem> |
| 103 | */ |
| 104 | export function ListItem(t0) { |
| 105 | const $ = _c(32); |
| 106 | const { |
| 107 | isFocused, |
| 108 | isSelected: t1, |
| 109 | children, |
| 110 | description, |
| 111 | showScrollDown, |
| 112 | showScrollUp, |
| 113 | styled: t2, |
| 114 | disabled: t3, |
| 115 | declareCursor |
| 116 | } = t0; |
| 117 | const isSelected = t1 === undefined ? false : t1; |
| 118 | const styled = t2 === undefined ? true : t2; |
| 119 | const disabled = t3 === undefined ? false : t3; |
| 120 | let t4; |
| 121 | if ($[0] !== disabled || $[1] !== isFocused || $[2] !== showScrollDown || $[3] !== showScrollUp) { |
| 122 | t4 = function renderIndicator() { |
| 123 | if (disabled) { |
| 124 | return <Text> </Text>; |
| 125 | } |
| 126 | if (isFocused) { |
| 127 | return <Text color="suggestion">{figures.pointer}</Text>; |
| 128 | } |
| 129 | if (showScrollDown) { |
| 130 | return <Text dimColor={true}>{figures.arrowDown}</Text>; |
| 131 | } |
| 132 | if (showScrollUp) { |
| 133 | return <Text dimColor={true}>{figures.arrowUp}</Text>; |
| 134 | } |
| 135 | return <Text> </Text>; |
| 136 | }; |
| 137 | $[0] = disabled; |
| 138 | $[1] = isFocused; |
| 139 | $[2] = showScrollDown; |
| 140 | $[3] = showScrollUp; |
| 141 | $[4] = t4; |
| 142 | } else { |
| 143 | t4 = $[4]; |
| 144 | } |
| 145 | const renderIndicator = t4; |
| 146 | let t5; |
| 147 | if ($[5] !== disabled || $[6] !== isFocused || $[7] !== isSelected || $[8] !== styled) { |
| 148 | const getTextColor = function getTextColor() { |
| 149 | if (disabled) { |
| 150 | return "inactive"; |
| 151 | } |
| 152 | if (!styled) { |
| 153 | return; |
| 154 | } |
| 155 | if (isSelected) { |
| 156 | return "success"; |
| 157 | } |
| 158 | if (isFocused) { |
| 159 | return "suggestion"; |
| 160 | } |
| 161 | }; |
nothing calls this directly
no test coverage detected