@churchapps/apphelper-markdown
Version:
ChurchApps markdown/lexical editor components
8 lines (7 loc) • 511 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Suspense, lazy } from "react";
import { CircularProgress } from "@mui/material";
const HtmlEditorInner = lazy(() => import("./HtmlEditorInner"));
export function HtmlEditor({ value = "", onChange, style, placeholder, readOnly = false }) {
return (_jsx(Suspense, { fallback: _jsx(CircularProgress, { size: 20 }), children: _jsx(HtmlEditorInner, { value: value, onChange: onChange, style: style, placeholder: placeholder, readOnly: readOnly }) }));
}