import { jsxs as p, jsx as e } from "react/jsx-runtime";
import c from "../../utils/classNames.js";
import m from "../tooltip/SimpleTooltip.js";
import { PLACEMENT as N } from "../../values/Placement.js";
const g = (a) => {
  const {
    text: s,
    className: r = "",
    tooltip: n,
    tooltipPlacement: i = N.BOTTOM,
    tooltipWidth: l = "auto",
    ...t
  } = a, o = c("NoData", r);
  return n ? /* @__PURE__ */ p("span", { ...t, className: o, children: [
    /* @__PURE__ */ e("span", { className: "pointer-events-none user-select-none", children: s }),
    /* @__PURE__ */ e(m, { content: n, placement: i, width: l, children: /* @__PURE__ */ e("span", { className: "rioglyph rioglyph-info-sign margin-left-5" }) })
  ] }) : /* @__PURE__ */ e("span", { ...t, className: o, children: /* @__PURE__ */ e("span", { className: "pointer-events-none user-select-none", children: s }) });
};
export {
  g as default
};
//# sourceMappingURL=NoData.js.map
