import * as p from "react";
import n from "../../tooltip/index.mjs";
const o = (e) => {
  let {
    enabledEllipsis: s,
    isEllipsis: t,
    children: l,
    tooltipProps: i
  } = e;
  return !(i != null && i.title) || !s ? l : /* @__PURE__ */ p.createElement(n, Object.assign({
    open: t ? void 0 : !1
  }, i), l);
};
process.env.NODE_ENV !== "production" && (o.displayName = "EllipsisTooltip");
const a = o;
export {
  a as default
};
