import React from 'react' ; import { EuiIcon } from '@elastic/eui' ; import { getSpanIcon } from './get_span_icon' ; interface Props { type ? : string ; subtype ? : string ; } export function SpanIcon ( { type , subtype } ) { const icon = getSpanIcon ( type , subtype ) ; return < EuiIcon type = { icon } size = "l" title = { type || subtype } />; }