openhands / src /components /features /conversation-panel /hooks-empty-state.tsx
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
9b906ea verified
Raw History Blame Contribute Delete
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>
);
}