import { jsx as m } from "@emotion/react/jsx-runtime";
import { ICONS_FORMATTER_CLASSES as n } from "../constants.js";
import { IconClickeableStyled as p, IconStyled as C } from "../slots/IconsFormatterSlots.js";
function u(t, e) {
  const { iconUrl: c, onClick: o, tooltip: i, dataTestId: l, color: r, visible: s, size: a } = t;
  return s === !1 ? null : /* @__PURE__ */ m(
    o ? p : C,
    {
      src: c,
      onClick: o,
      tooltipContent: i,
      instaceDataTestId: l,
      className: o ? n.iconClickeable : n.icon,
      color: r,
      size: a
    },
    e
  );
}
export {
  u as renderIcon
};
