import { jsx as r } from "react/jsx-runtime";
const c = (a = "") => a.split(" ").map((t) => t[0]).join(""), g = ({ image: a, name: t, abbr: s, alt: n, iconName: i = "", iconClassName: e = "" }) => {
  if (a)
    return /* @__PURE__ */ r("img", { src: a, alt: n || t || "avatar", className: "Avatar-image", draggable: !1 });
  if (s || t) {
    const l = s || c(t), o = l.length > 2 ? { letterSpacing: "-0.2px" } : {};
    return /* @__PURE__ */ r("span", { className: "Avatar-initials", style: o, children: l });
  }
  return i ? /* @__PURE__ */ r("span", { className: `Avatar-icon rioglyph rioglyph-${i} ${e}` }) : null;
};
export {
  g as default
};
//# sourceMappingURL=AvatarContent.js.map
