export function FeatureSelected()

in app/launch/src/components/FeatureSelector/FeatureSelected.js [17:38]


export function FeatureSelected({ feature, onRemoveFeature, hasError }) {
  const style = { marginRight: 10 }
  if (hasError) {
    style.background = 'var(--theme-danger)'
    style.color = 'white'
  }
  return (
    <div style={style} className="chip">
      {feature.title}
      <i
        onClick={(e) => {
          e.preventDefault()
          onRemoveFeature(feature)
        }}
        className="material-icons"
        style={closeButtonStyle}
      >
        close
      </i>
    </div>
  )
}