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