import React from 'react' ; import { EuiToken } from '@elastic/eui' ; import { BOOST_TYPE_TO_ICON_MAP } from '../constants' ; import { BoostType } from '../types' ; interface Props { type : BoostType ; } export const BoostIcon = ( { type } ) => { return ( < EuiToken iconType = { BOOST_TYPE_TO_ICON_MAP [ type ] } size = "m" shape = "square" color = "euiColorVis1" / > ) ; } ;