import e from"../_util/classNames.mjs";import{isPresetColor as t}from"../_util/colors.mjs";function n(n,r){let i=t(r),a=e({[`${n}-${r}`]:r&&i}),o={},s={};return r&&!i&&(o.background=r,s[`--antd-arrow-background-color`]=r),{className:a,overlayStyle:o,arrowStyle:s}}export{n as parseColor};