import { useTranslation } from "react-i18next"; import { I18nKey } from "#/i18n/declaration"; import ExclamationCircleIcon from "#/icons/exclamation-circle.svg?react"; import { BackLink } from "#/components/features/automations/detail/back-link"; /** * Shown when the automation backend answers the git-sync endpoints with 404: * it predates the API. Without this the page settles on the generic "something * went wrong" panel, which reads as a broken install rather than an old * backend. */ export function GitSyncUnsupportedState() { const { t } = useTranslation("openhands"); return (

{t(I18nKey.AUTOMATIONS$GIT_SYNC$UNSUPPORTED_TITLE)}

{t(I18nKey.AUTOMATIONS$GIT_SYNC$UNSUPPORTED_MESSAGE)}

); }