+ {(percentageComplete, numDocumentsWithErrors) => (
+
+ {percentageComplete < 100 && (
+
+
+
+ )}
+ {percentageComplete === 100 && numDocumentsWithErrors > 0 && (
+ <>
+
+
+ >
+ )}
+
+ )}
+
+);
diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/indexing_status/indexing_status_content.test.tsx b/x-pack/plugins/enterprise_search/public/applications/shared/indexing_status/indexing_status_content.test.tsx
new file mode 100644
index 0000000000000..9fe0e890e6943
--- /dev/null
+++ b/x-pack/plugins/enterprise_search/public/applications/shared/indexing_status/indexing_status_content.test.tsx
@@ -0,0 +1,21 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License;
+ * you may not use this file except in compliance with the Elastic License.
+ */
+
+import React from 'react';
+import { shallow } from 'enzyme';
+
+import { EuiProgress, EuiTitle } from '@elastic/eui';
+
+import { IndexingStatusContent } from './indexing_status_content';
+
+describe('IndexingStatusContent', () => {
+ it('renders', () => {
+ const wrapper = shallow(