import { useTranslation } from "react-i18next"; import { I18nKey } from "#/i18n/declaration"; import { useConfig } from "#/hooks/query/use-config"; import { useAuthUrl } from "#/hooks/use-auth-url"; import { BrandButton } from "../brand-button"; export function ConfigureAzureDevOpsAnchor() { const { t } = useTranslation(); const { data: config } = useConfig(); const authUrl = useAuthUrl({ appMode: config?.APP_MODE ?? null, identityProvider: "azure_devops", authUrl: config?.AUTH_URL, }); const handleOAuthFlow = () => { if (!authUrl) { return; } window.location.href = authUrl; }; return (