SpaceProbe1 / frontend /src /components /StatusBadge.tsx
a9's picture
Upload 26 files
9793e68 verified
export default function StatusBadge({ state, stage }) {
const color =
state === "CONNECTED"
? "bg-green-500"
: state === "ERROR"
? "bg-red-500"
: "bg-gray-500";
return (
<div className={`px-3 py-1 rounded ${color}`}>
{state} • {stage}
</div>
);
}