"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getBackgroundColor = void 0;

var _branding = require("../../../../mixins/branding/branding.css-rules");

var _toast = require("./toast.constants");

var getBackgroundColor = function getBackgroundColor(_ref) {
  var theme = _ref.theme,
      level = _ref.level;

  switch (level) {
    case 'success':
      return (0, _branding.getPaletteColor)('success-fg')({
        theme: theme
      });

    case 'error':
      return (0, _branding.getPaletteColor)('error-fg')({
        theme: theme
      });

    case 'info':
      return (0, _branding.getPaletteColor)('info-fg')({
        theme: theme
      });

    case 'neutral':
      return (0, _branding.getPaletteColor)('greyscale-dark')({
        theme: theme
      });

    default:
      return (0, _branding.getPaletteColor)(_toast.DEFAULT_BG_COLOR)({
        theme: theme
      });
  }
};

exports.getBackgroundColor = getBackgroundColor;