/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
import React, { forwardRef } from "react";
import { EuiDelayRender, EuiLoadingContent } from "@elastic/eui";
import type { MonacoJSONEditorProps } from "./interface";
import { IJSONEditorRef } from "../JSONEditor";
import "./index.scss";
const LazyBaseEditor = React.lazy(() =>
process?.env?.NODE_ENV === "test" ? import("../JSONDiffEditor/JSONTextArea") : import("./MonacoJSONEditor")
);
const Fallback = () => (
);
const MonacoJSONEditor = forwardRef((props: MonacoJSONEditorProps, ref: React.Ref) => {
return (
}>
);
});
export default MonacoJSONEditor;
export * from "./interface";
export { IJSONEditorRef };