import { j as o } from "../../node_modules/react/jsx-runtime.mjs";
import { useState as c, useEffect as m } from "react";
import r from "./BitzPopover.module.less.mjs";
import f from "../../node_modules/antd/es/typography/index.mjs";
const { Paragraph: u } = f, E = (t) => {
  const { children: a, ellipsis: e = !1, ...n } = t, [l, s] = c(), p = () => {
    s(!1);
  }, i = () => {
    s(e);
  };
  return m(() => {
    s(e);
  }, [e]), o.jsx("div", { ...n, className: r.bitzPopoverBlock, onMouseEnter: p, onMouseLeave: i, children: o.jsx(u, { ellipsis: l, className: r.Paragraph, children: a }) });
};
export {
  E as default
};
