'use strict';

require('../../../utils/index.cjs');
var color = require('../../../utils/color.cjs');
var _class = require('../../../utils/dom/class.cjs');

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

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