File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
x-pack/solutions/security/plugins/security_solution/public/flyout/entity_details/user_right Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 77
88import { EuiHorizontalRule } from '@elastic/eui' ;
99import React from 'react' ;
10+ import { useIsExperimentalFeatureEnabled } from '../../../common/hooks/use_experimental_features' ;
1011import { EntityHighlightsAccordion } from '../../../entity_analytics/components/entity_details_flyout/components/entity_highlights' ;
1112import type { UserItem } from '../../../../common/search_strategy' ;
1213import { AssetCriticalityAccordion } from '../../../entity_analytics/components/asset_criticality/asset_criticality_selector' ;
@@ -47,9 +48,15 @@ export const UserPanelContent = ({
4748} : UserPanelContentProps ) => {
4849 const observedFields = useObservedUserItems ( observedUser ) ;
4950
51+ const isEntityDetailsHighlightsAIEnabled = useIsExperimentalFeatureEnabled (
52+ 'entityDetailsHighlightsEnabled'
53+ ) ;
54+
5055 return (
5156 < FlyoutBody >
52- < EntityHighlightsAccordion entityIdentifier = { userName } entityType = { EntityType . user } />
57+ { isEntityDetailsHighlightsAIEnabled && (
58+ < EntityHighlightsAccordion entityIdentifier = { userName } entityType = { EntityType . user } />
59+ ) }
5360 { riskScoreState . hasEngineBeenInstalled && riskScoreState . data ?. length !== 0 && (
5461 < >
5562 < FlyoutRiskSummary
You can’t perform that action at this time.
0 commit comments