⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
import { useTranslation } from "react-i18next";
import { IntegrationCheckLine } from "@/components/project/integrations/panel/integration-check-line";
import { IntegrationPanelSection } from "@/components/project/integrations/panel/integration-panel-section";
import { Button } from "@/components/ui/button";
type CodeHostingLoadErrorProps = {
error: unknown;
onRetry: () => void;
};
export function CodeHostingLoadError({
error,
onRetry,
}: CodeHostingLoadErrorProps) {
const { t } = useTranslation();
return (
<IntegrationPanelSection>
<IntegrationCheckLine
tone="destructive"
action={
<Button type="button" variant="outline" size="sm" onClick={onRetry}>
{t("settings:codeHosting.retry")}
</Button>
}
>
{error instanceof Error && error.message
? error.message
: t("settings:codeHosting.loadError")}
</IntegrationCheckLine>
</IntegrationPanelSection>
);
}