import { jsx as a } from "react/jsx-runtime";
import { InfoType as d } from "../types.js";
import l from "../Content/tooltip-avatar.js";
function u(i) {
  const { user: r, infoType: n, avatarSize: o = 48, shouldShowHoverCard: f = !1, renderCardContent: e, ...t } = i;
  return n === d.NameOnly ? /* @__PURE__ */ a(
    l,
    {
      user: r,
      avatarSize: o,
      shouldShowHoverCard: !1,
      renderCardContent: e,
      tooltipTitle: r.fullName || r.email || r.did,
      ...t
    }
  ) : /* @__PURE__ */ a(
    l,
    {
      user: r,
      avatarSize: o,
      shouldShowHoverCard: f,
      renderCardContent: e,
      ...t
    }
  );
}
export {
  u as default
};
