Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

1.2 KB
Raw Blame
import { useTranslation } from "react-i18next";
import { IntegrationCheckLine } from "@/components/project/integrations/panel/integration-check-line";
import { IntegrationPanel } from "@/components/project/integrations/panel/integration-panel";
import { IntegrationPanelSection } from "@/components/project/integrations/panel/integration-panel-section";
import { Button } from "@/components/ui/button";

type TelegramLoadErrorProps = {
  retrying: boolean;
  onRetry: () => void;
};

export function TelegramLoadError({
  retrying,
  onRetry,
}: TelegramLoadErrorProps) {
  const { t } = useTranslation();

  return (
    <IntegrationPanel>
      <IntegrationPanelSection>
        <IntegrationCheckLine
          action={
            <Button
              disabled={retrying}
              onClick={onRetry}
              size="sm"
              type="button"
              variant="outline"
            >
              {t("settings:chatIntegrations.retry")}
            </Button>
          }
          tone="destructive"
        >
          {t("settings:telegramIntegration.loadError")}
        </IntegrationCheckLine>
      </IntegrationPanelSection>
    </IntegrationPanel>
  );
}