import '../../../utils/index.mjs';
import { isPresetColor } from '../../../utils/color.mjs';
import { classNames } from '../../../utils/dom/class.mjs';

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

export { parseColor };
//# sourceMappingURL=util.mjs.map
