+ {osLabel != null && (
+
+
+
+
+
+
+ )}
+ {entries.map((entry, index) => {
+ const { field, type } = entry;
+ const value = 'value' in entry ? entry.value : '';
+ const nestedEntries = 'entries' in entry ? entry.entries : [];
+ const operator = 'operator' in entry ? entry.operator : '';
+
+ return (
+
+
+ {i18n.CONDITION_AND}
+ }
+ value={field}
+ color={index === 0 ? 'primary' : 'subdued'}
+ />
+
+
+ {nestedEntries != null && getNestedEntriesContent(type, nestedEntries)}
+
+ );
+ })}
+
+ );
+ }
+);
+ExceptionItemCardConditions.displayName = 'ExceptionItemCardConditions';
diff --git a/x-pack/plugins/security_solution/public/common/components/exceptions/viewer/exception_item_card/exception_item_card_header.test.tsx b/x-pack/plugins/security_solution/public/common/components/exceptions/viewer/exception_item_card/exception_item_card_header.test.tsx
new file mode 100644
index 0000000000000..fe8811152e2e1
--- /dev/null
+++ b/x-pack/plugins/security_solution/public/common/components/exceptions/viewer/exception_item_card/exception_item_card_header.test.tsx
@@ -0,0 +1,128 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0; you may not use this file except in compliance with the Elastic License
+ * 2.0.
+ */
+
+import React from 'react';
+import { mount } from 'enzyme';
+import { getExceptionListItemSchemaMock } from '@kbn/lists-plugin/common/schemas/response/exception_list_item_schema.mock';
+import { ThemeProvider } from 'styled-components';
+
+import * as i18n from './translations';
+import { ExceptionItemCardHeader } from './exception_item_card_header';
+import { getMockTheme } from '../../../../lib/kibana/kibana_react.mock';
+
+const mockTheme = getMockTheme({
+ eui: {
+ euiSize: '10px',
+ euiColorPrimary: '#ece',
+ euiColorDanger: '#ece',
+ },
+});
+
+describe('ExceptionItemCardHeader', () => {
+ it('it renders item name', () => {
+ const wrapper = mount(
+