Download src/components/features/conversation-panel/hooks-empty-state.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 596 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/conversation-panel/hooks-empty-state.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/conversation-panel/hooks-empty-state.tsx
-
curl -L -o hooks-empty-state.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/conversation-panel/hooks-empty-state.tsx
596 Bytes
| import { useTranslation } from "react-i18next"; | |
| import { I18nKey } from "#/i18n/declaration"; | |
| import { Typography } from "#/ui/typography"; | |
| interface HooksEmptyStateProps { | |
| isError: boolean; | |
| } | |
| export function HooksEmptyState({ isError }: HooksEmptyStateProps) { | |
| const { t } = useTranslation("openhands"); | |
| return ( | |
| <div className="flex items-center justify-center h-full p-4"> | |
| <Typography.Text className="text-[var(--oh-muted)]"> | |
| {isError | |
| ? t(I18nKey.COMMON$FETCH_ERROR) | |
| : t(I18nKey.CONVERSATION$NO_HOOKS)} | |
| </Typography.Text> | |
| </div> | |
| ); | |
| } | |