import React , { FC } from 'react' ; import { EuiCodeBlock } from '@elastic/eui' ; import type { FeatureImportance } from '../../../../../../../common/types/feature_importance' ; interface DecisionPathJSONViewerProps { featureImportance : FeatureImportance [ ] ; } export const DecisionPathJSONViewer = ( { featureImportance } ) => { return < EuiCodeBlock isCopyable = { true } > { JSON . stringify ( featureImportance ) } < /EuiCodeBlock>; } ;