const r = (o, l) => {
  const e = l?.disabled ? o.vars.palette.default : o.vars.palette[l?.color || "default"], i = l?.disabled ? !1 : l?.selected;
  let t = e.enabled, c = e.hoverOpacity, a = e.activeOpacity, s = e.semanticText;
  const d = e.enabled;
  return l?.variant === "contained" ? (i && (t = e.selected), c = e.hover, a = e.active, s = e.contrastText) : i ? t = e.selectedOpacity : t = "unset", l?.disabled && (s = o.vars.palette.text.disabled), { bgColor: t, bgColorHover: c, bgColorActive: a, iconColor: s, borderColor: d, bgFocusVisible: e.focusVisible };
};
export {
  r as getIconButtonColors
};
