getIconForIntent = (intent, props = {}) => {
  switch (intent) {
    case Intent.SUCCESS:
      return <TickCircleIcon color="success" {...props} />
    case Intent.DANGER:
      return <ErrorIcon color="danger" {...props} />
    case Intent.WARNING:
      return <WarningSignIcon color="warning" {...props} />
    case Intent.NONE:
    default:
      return <InfoSignIcon color="info" {...props} />
  }
}
Get the properties for an icon based on the intent.
@param {Intent} intent