import { jsx as n } from "react/jsx-runtime";
import { Tooltip as i, Zoom as f } from "@mui/material";
import { renderAvatar as c } from "../components.js";
function x({
  user: l,
  avatarSize: m,
  shouldShowHoverCard: r,
  renderCardContent: e = void 0,
  tooltipTitle: t = void 0,
  tooltipProps: a = void 0,
  avatarProps: p = void 0,
  onAvatarClick: s
}) {
  const o = c(
    l,
    m,
    p,
    s,
    r || !!t
  );
  return t ? /* @__PURE__ */ n(i, { enterDelay: 200, title: t, placement: "bottom", ...a ?? {}, children: o }) : r ? /* @__PURE__ */ n(
    i,
    {
      enterDelay: 200,
      title: e ? e() : null,
      placement: "bottom",
      arrow: !1,
      ...a ?? {},
      slotProps: {
        popper: {
          sx: {
            "& .MuiTooltip-tooltip": {
              backgroundColor: "transparent",
              p: 0,
              maxWidth: 500,
              zIndex: 1e3
            }
          }
        }
      },
      slots: {
        transition: f
      },
      children: o
    }
  ) : o;
}
export {
  x as default
};
