'use strict';

var iconsReact = require('@cloudtower/icons-react');

function getAlertIcon(type) {
  switch (type) {
    case "success":
      return iconsReact.CheckmarkDoneSuccessCircleFill16GreenIcon;
    case "info":
      return iconsReact.InfoICircleFill16BlueIcon;
    case "warning":
      return iconsReact.NoticeAttention16YellowIcon;
    case "error":
      return iconsReact.XmarkFailedSeriousWarningFill16RedIcon;
    case "normal":
      return iconsReact.InfoICircleFill16SecondaryIcon;
    default:
      return iconsReact.InfoICircleFill16SecondaryIcon;
  }
}

exports.getAlertIcon = getAlertIcon;
