'use strict';

var classNames = require('../_util/classNames.js');
var colors = require('../_util/colors.js');

function parseColor(prefixCls, color) {
  const isInternalColor = colors.isPresetColor(color);
  const className = classNames.default({
    [`${prefixCls}-${color}`]: color && isInternalColor
  });
  const overlayStyle = {};
  const arrowStyle = {};
  if (color && !isInternalColor) {
    overlayStyle.background = color;
    arrowStyle["--antd-arrow-background-color"] = color;
  }
  return { className, overlayStyle, arrowStyle };
}

exports.parseColor = parseColor;
//# sourceMappingURL=util.js.map
