(t0)
| 150 | return t6; |
| 151 | } |
| 152 | function FileItem(t0) { |
| 153 | const $ = _c(14); |
| 154 | const { |
| 155 | file, |
| 156 | isSelected, |
| 157 | maxPathWidth |
| 158 | } = t0; |
| 159 | let t1; |
| 160 | if ($[0] !== file.path || $[1] !== maxPathWidth) { |
| 161 | t1 = truncateStartToWidth(file.path, maxPathWidth); |
| 162 | $[0] = file.path; |
| 163 | $[1] = maxPathWidth; |
| 164 | $[2] = t1; |
| 165 | } else { |
| 166 | t1 = $[2]; |
| 167 | } |
| 168 | const displayPath = t1; |
| 169 | const pointer = isSelected ? figures.pointer + " " : " "; |
| 170 | const line = `${pointer}${displayPath}`; |
| 171 | const t2 = isSelected ? "background" : undefined; |
| 172 | let t3; |
| 173 | if ($[3] !== isSelected || $[4] !== line || $[5] !== t2) { |
| 174 | t3 = <Text bold={isSelected} color={t2} inverse={isSelected}>{line}</Text>; |
| 175 | $[3] = isSelected; |
| 176 | $[4] = line; |
| 177 | $[5] = t2; |
| 178 | $[6] = t3; |
| 179 | } else { |
| 180 | t3 = $[6]; |
| 181 | } |
| 182 | let t4; |
| 183 | if ($[7] === Symbol.for("react.memo_cache_sentinel")) { |
| 184 | t4 = <Box flexGrow={1} />; |
| 185 | $[7] = t4; |
| 186 | } else { |
| 187 | t4 = $[7]; |
| 188 | } |
| 189 | let t5; |
| 190 | if ($[8] !== file || $[9] !== isSelected) { |
| 191 | t5 = <FileStats file={file} isSelected={isSelected} />; |
| 192 | $[8] = file; |
| 193 | $[9] = isSelected; |
| 194 | $[10] = t5; |
| 195 | } else { |
| 196 | t5 = $[10]; |
| 197 | } |
| 198 | let t6; |
| 199 | if ($[11] !== t3 || $[12] !== t5) { |
| 200 | t6 = <Box flexDirection="row">{t3}{t4}{t5}</Box>; |
| 201 | $[11] = t3; |
| 202 | $[12] = t5; |
| 203 | $[13] = t6; |
| 204 | } else { |
| 205 | t6 = $[13]; |
| 206 | } |
| 207 | return t6; |
| 208 | } |
| 209 | function FileStats(t0) { |
nothing calls this directly
no test coverage detected