Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

ComposerServerUpdateStatus.tsx

14 lines492 Bytes

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 />;