diff --git a/x-pack/plugins/cases/public/components/user_action_tree/helpers.tsx b/x-pack/plugins/cases/public/components/user_action_tree/helpers.tsx index 338b8577458e3..5a688ac00ca79 100644 --- a/x-pack/plugins/cases/public/components/user_action_tree/helpers.tsx +++ b/x-pack/plugins/cases/public/components/user_action_tree/helpers.tsx @@ -5,9 +5,17 @@ * 2.0. */ -import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiLink, EuiCommentProps } from '@elastic/eui'; -import React from 'react'; +import { + EuiFlexGroup, + EuiFlexItem, + EuiIcon, + EuiLink, + EuiCommentProps, + EuiToken, +} from '@elastic/eui'; +import React, { useContext } from 'react'; import classNames from 'classnames'; +import { ThemeContext } from 'styled-components'; import { CaseFullExternalService, ActionConnector, @@ -37,6 +45,7 @@ interface LabelTitle { action: CaseUserActions; field: string; } + export type RuleDetailsNavigation = CasesNavigation; export type ActionsNavigation = CasesNavigation; @@ -365,6 +374,22 @@ export const getGeneratedAlertsAttachment = ({ ), }); +const ActionIcon = React.memo<{ + actionType: string; +}>(({ actionType }) => { + const theme = useContext(ThemeContext); + return ( + + ); +}); + export const getActionAttachment = ({ comment, userCanCrud, @@ -407,7 +432,7 @@ export const getActionAttachment = ({ ), 'data-test-subj': 'endpoint-action', timestamp: , - timelineIcon: comment.actions.type === 'isolate' ? 'lock' : 'lockOpen', + timelineIcon: , actions: ( props.theme.eui.paddingSizes.xl} 0; - background-color: #fafbfd; border-bottom: 1px solid #d3dae6; .securitySolutionHeaderPage { max-width: ${maxFormWidth};