import { j as jsxRuntimeExports } from "./jsx-runtime.CXYVdt5g.js";
import { Suspense, lazy } from "react";
const TextEditor = lazy(() => import("./TextEditor.CBE9ulnq.js"));
function TextContent(props) {
  if (props.editable) {
    return /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(TextEditor, { ...props, content: props.content, inline: true }) });
  }
  const { as, className, content, ...rest } = props;
  const Component = as ?? "div";
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
    Component,
    {
      className,
      dangerouslySetInnerHTML: { __html: content },
      ...rest
    }
  );
}
export {
  TextContent as T
};
//# sourceMappingURL=TextContent.V3HF5Ue-.js.map
