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

ComposerServerUpdateStatus.tsx

17 lines515 Bytes

1import { Spinner } from "~/components/ui/spinner";
2import type { ServerUpdateState } from "@t3tools/client-runtime/state/server";
3import { CircleAlertIcon, DownloadIcon } from "lucide-react";
4​
5export function ComposerServerUpdateIcon({
6 status,
7}: {
8 readonly status: ServerUpdateState["status"];
9}) {
10 if (status === "running") {
11 return <Spinner aria-hidden />;
12 }
13 if (status === "failed") {
14 return <CircleAlertIcon aria-hidden className="text-error" />;
15 }
16 return <DownloadIcon aria-hidden />;