"use client";
import { jsx as r, jsxs as e } from "react/jsx-runtime";
import { cn as t } from "../../../../lib/utils.js";
import { TooltipProvider as n, Tooltip as c, TooltipTrigger as l, TooltipContent as d } from "../../tooltip.js";
function m({
  text: i,
  // maxLength,
  className: o = ""
}) {
  return /* @__PURE__ */ r(n, { children: /* @__PURE__ */ e(c, { children: [
    /* @__PURE__ */ r(l, { asChild: !0, children: /* @__PURE__ */ r("div", { className: t("cursor-pointer truncate", o), children: i }) }),
    /* @__PURE__ */ r(d, { children: /* @__PURE__ */ r("p", { children: i }) })
  ] }) });
}
export {
  m as TruncatedText
};
