File size: 596 Bytes
9b906ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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>
  );
}