浏览文件
environment-shield.jsx
15 行 · 464 B历史下载| 1 | import React from "react"; |
| 2 | import { Shield, ShieldCheck } from "lucide-react"; |
| 3 | |
| 4 | export function EnvironmentShield({ healthy, className = "", size = 20 }) { |
| 5 | const Icon = healthy ? ShieldCheck : Shield; |
| 6 | return ( |
| 7 | <Icon |
| 8 | size={size} |
| 9 | className={`environment-shield ${healthy ? "healthy" : ""} ${className}`} |
| 10 | role="img" |
| 11 | aria-label={healthy ? "环境运行正常,网络检查通过" : "Cage 环境"} |
| 12 | strokeWidth={1.8} |
| 13 | /> |
| 14 | ); |
| 15 | } |

