import { jsx as a } from "react/jsx-runtime";
import { Figure as c } from "../figure/index.js";
import { Icon as n } from "../icon/index.js";
import { Link as i } from "../link/index.js";
import '../../assets/index14.css';const m = "_avatar_3vtid_5", v = {
  avatar: m
}, u = ({
  accessibleLabel: s,
  imageUrl: r,
  link: t
}) => {
  const e = s || "User Avatar", o = /* @__PURE__ */ a("span", { className: v.avatar, children: /* @__PURE__ */ a(c, { accessibleLabel: e, children: r ? /* @__PURE__ */ a("img", { src: r, alt: e }) : /* @__PURE__ */ a(n, { name: "user", variant: t ? "white" : "default" }) }) });
  return t ? /* @__PURE__ */ a(i, { to: t, "data-component": "avatar", children: o }) : o;
};
export {
  u as Avatar
};
//# sourceMappingURL=index.js.map
