import { j as n } from "../../../../../_virtual/jsx-runtime.js";
import { Suspense as a, lazy as c } from "react";
const m = c(() => import("./TextEditor.js"));
function x(t) {
  if (t.editable)
    return /* @__PURE__ */ n.jsx(a, { children: /* @__PURE__ */ n.jsx(m, { ...t, content: t.content, inline: !0 }) });
  const { as: e, className: o, content: r, ...s } = t, i = e ?? "div";
  return /* @__PURE__ */ n.jsx(
    i,
    {
      className: o,
      dangerouslySetInnerHTML: { __html: r },
      ...s
    }
  );
}
export {
  x as default
};
//# sourceMappingURL=TextContent.js.map
