Open History to see the last commit
1import type { ServerUpdateState } from "@t3tools/client-runtime/state/server";
2import { CircleAlertIcon, DownloadIcon } from "lucide-react";
3
4// Static on purpose: the title says when an update is running, and spinners repaint every frame.
5export 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}