import React from 'react'; import Icon from 'components/icons/Icon'; import targetInterface from 'interfaces/target'; const baseClass = 'target-option'; const TargetIcon = ({ target }) => { const iconName = () => { const { name, platform, target_type: targetType } = target; if (targetType === 'labels') { return name === 'All Hosts' ? 'all-hosts' : 'label'; } return platform === 'darwin' ? 'apple' : platform; }; return ; }; TargetIcon.propTypes = { target: targetInterface.isRequired }; export default TargetIcon;