+
+ {t('zimbra_domain_diagnostic_status')}
+
+
+ {hasError && diagnostic?.errorMessage && (
+
+ {diagnostic.errorMessage}
+
+ )}
+
+ {t(
+ `zimbra_domain_diagnostic_information_message_${recordType.toLowerCase()}_${diagnostic.status.toLowerCase()}`,
+ {
+ errorCode: diagnostic.errorCode,
+ },
+ )}
+
+ {hasError && guide && (
+
+ )}
+ {hasError && !isOvh && (
+
+
+
+
+
+ {t('zimbra_domain_diagnostic_type')}
+
+ {recordType === DnsRecordType.DKIM ? 'TXT' : recordType}
+
+
+ |
+
+ {fieldHelpers}
+
+
+ )}
+ {hasError && isOvh &&
}
+
+ );
+};
+
+export default function DomainDiagnostics() {
+ const { t } = useTranslation('domains/diagnostic');
+ const { platformId } = usePlatform();
+ const location = useLocation();
+ const [searchParams] = useSearchParams();
+ const params = Object.fromEntries(searchParams.entries());
+ const domainId = searchParams.get('domainId');
+ const navigate = useNavigate();
+ const goBackUrl = useGenerateUrl('../..', 'href');
+ // const onClose = () => navigate(goBackUrl);
+
+ const {
+ data: domain,
+ isPending,
+ isRefetching,
+ isError,
+ refetch,
+ } = useDomainDiagnostic({
+ domainId,
+ });
+
+ const tabsList: TabItemProps[] = [
+ {
+ name: DnsRecordType.MX,
+ title: (
+