var colorMap = {
  background: {
    neutral: "nodeBadgeBackground",
    success: "success",
    clear: "success",
    warning: "warning",
    error: "error",
    critical: "error",
    stale: "stale",
    idleClear: "idleClear",
    idleError: "idleError",
    idleWarning: "idleWarning"
  },
  border: {
    neutral: "nodeBadgeBackground",
    success: "success",
    clear: "success",
    warning: "warning",
    error: "error",
    critical: "error",
    stale: "stale",
    idleClear: "idleClear",
    idleError: "idleError",
    idleWarning: "idleWarning"
  },
  hollow: {
    neutral: "neutralPillBorder",
    success: "successSemi",
    clear: "successSemi",
    warning: "warningSemi",
    error: "errorSemi",
    critical: "errorSemi",
    stale: "staleSemi"
  },
  color: {
    neutral: "neutralPillColor",
    success: "success",
    clear: "success",
    warning: "warning",
    error: "error",
    critical: "error",
    stale: "stale",
    idleClear: "idleClear",
    idleError: "idleError",
    idleWarning: "idleWarning"
  }
};

// TODO deprecated them by taking care all the mastcards in app
export var masterCardColorMap = {
  alert: "alertIcon",
  disabledClear: "idleClear",
  disabledError: "errorSemi",
  disabledWarning: "idleWarning",
  clear: "success",
  error: "error",
  warning: "warning"
};
var getMasterCardColor = function getMasterCardColor(flavour) {
  return masterCardColorMap[flavour];
};
var getPillColor = function getPillColor(type, flavour) {
  return colorMap[type][flavour] || colorMap[type].neutral;
};
export { getMasterCardColor, getPillColor };