Download src/components/features/chat/success-indicator.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 542 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/chat/success-indicator.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/chat/success-indicator.tsx
-
curl -L -o success-indicator.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/chat/success-indicator.tsx
542 Bytes
| import { FaClock } from "react-icons/fa"; | |
| import { ObservationResultStatus } from "#/components/conversation-events/chat/event-content-helpers/get-observation-result"; | |
| interface SuccessIndicatorProps { | |
| status: ObservationResultStatus; | |
| } | |
| export function SuccessIndicator({ status }: SuccessIndicatorProps) { | |
| return ( | |
| <span className="flex-shrink-0"> | |
| {status === "timeout" && ( | |
| <FaClock | |
| data-testid="status-icon" | |
| className="h-4 w-4 ml-2 inline fill-yellow-500" | |
| /> | |
| )} | |
| </span> | |
| ); | |
| } | |