Download src/components/features/automations/error-state.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 846 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/automations/error-state.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/automations/error-state.tsx
-
curl -L -o error-state.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/automations/error-state.tsx
846 Bytes
| import { useTranslation } from "react-i18next"; | |
| import { I18nKey } from "#/i18n/declaration"; | |
| import ExclamationCircleIcon from "#/icons/exclamation-circle.svg?react"; | |
| interface ErrorStateProps { | |
| onRetry: () => void; | |
| } | |
| export function ErrorState({ onRetry }: ErrorStateProps) { | |
| const { t } = useTranslation("openhands"); | |
| return ( | |
| <div className="flex flex-col items-center justify-center py-20"> | |
| <ExclamationCircleIcon className="size-12 text-danger" /> | |
| <p className="mt-4 text-sm text-muted"> | |
| {t(I18nKey.AUTOMATIONS$ERROR_TITLE)} | |
| </p> | |
| <button | |
| type="button" | |
| onClick={onRetry} | |
| className="mt-4 rounded-lg border border-[var(--oh-border)] px-4 py-2 text-sm text-white hover:bg-surface-raised" | |
| > | |
| {t(I18nKey.AUTOMATIONS$ERROR_RETRY)} | |
| </button> | |
| </div> | |
| ); | |
| } | |