The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import type { ServerUpdateState } from "@t3tools/client-runtime/state/server"; |
| 2 | import { CircleAlertIcon, DownloadIcon } from "lucide-react"; |
| 3 | |
| 4 | // Static on purpose: the title says when an update is running, and spinners repaint every frame. |
| 5 | export function ComposerServerUpdateIcon({ |
| 6 | status, |
| 7 | }: { |
| 8 | readonly status: ServerUpdateState["status"]; |
| 9 | }) { |
| 10 | if (status === "failed") { |
| 11 | return <CircleAlertIcon aria-hidden className="text-error" />; |
| 12 | } |
| 13 | return <DownloadIcon aria-hidden />; |
| 14 | } |