import { jsx as t } from "react/jsx-runtime";
import { useState as a } from "react";
import { T as n } from "./Tooltip.Bw3DPT1B.js";
import { E as l } from "./EllipsisText.DFxnPYIe.js";
function E({
  text: r,
  children: o
}) {
  const [e, s] = a(!1);
  return e ? /* @__PURE__ */ t(n, { text: r, placement: "bottom", variant: "subtle", children: /* @__PURE__ */ t(l, { onEllipsisChange: (i) => s(i), children: o }) }) : /* @__PURE__ */ t(l, { onEllipsisChange: (i) => s(i), children: o });
}
export {
  E as T
};
