| 9 | isSelected: boolean; |
| 10 | }; |
| 11 | export function UnifiedInstalledCell(t0) { |
| 12 | const $ = _c(142); |
| 13 | const { |
| 14 | item, |
| 15 | isSelected |
| 16 | } = t0; |
| 17 | const [theme] = useTheme(); |
| 18 | if (item.type === "plugin") { |
| 19 | let statusIcon; |
| 20 | let statusText; |
| 21 | if (item.pendingToggle) { |
| 22 | let t1; |
| 23 | if ($[0] !== theme) { |
| 24 | t1 = color("suggestion", theme)(figures.arrowRight); |
| 25 | $[0] = theme; |
| 26 | $[1] = t1; |
| 27 | } else { |
| 28 | t1 = $[1]; |
| 29 | } |
| 30 | statusIcon = t1; |
| 31 | statusText = item.pendingToggle === "will-enable" ? "will enable" : "will disable"; |
| 32 | } else { |
| 33 | if (item.errorCount > 0) { |
| 34 | let t1; |
| 35 | if ($[2] !== theme) { |
| 36 | t1 = color("error", theme)(figures.cross); |
| 37 | $[2] = theme; |
| 38 | $[3] = t1; |
| 39 | } else { |
| 40 | t1 = $[3]; |
| 41 | } |
| 42 | statusIcon = t1; |
| 43 | const t2 = item.errorCount; |
| 44 | let t3; |
| 45 | if ($[4] !== item.errorCount) { |
| 46 | t3 = plural(item.errorCount, "error"); |
| 47 | $[4] = item.errorCount; |
| 48 | $[5] = t3; |
| 49 | } else { |
| 50 | t3 = $[5]; |
| 51 | } |
| 52 | statusText = `${t2} ${t3}`; |
| 53 | } else { |
| 54 | if (!item.isEnabled) { |
| 55 | let t1; |
| 56 | if ($[6] !== theme) { |
| 57 | t1 = color("inactive", theme)(figures.radioOff); |
| 58 | $[6] = theme; |
| 59 | $[7] = t1; |
| 60 | } else { |
| 61 | t1 = $[7]; |
| 62 | } |
| 63 | statusIcon = t1; |
| 64 | statusText = "disabled"; |
| 65 | } else { |
| 66 | let t1; |
| 67 | if ($[8] !== theme) { |
| 68 | t1 = color("success", theme)(figures.tick); |