import { jsx as _jsx } from "react/jsx-runtime";
import { DefaultEditor as BaseDefaultEditor } from "@powerhousedao/design-system";
import { useCallback, useState } from "react";
const documentModelEditorOptions = [
    { label: "V1", value: "document-model-editor" },
    { label: "V2", value: "document-model-editor-v2" },
];
export const DefaultEditor = () => {
    const [documentModelEditor, setDocumentModelEditor] = useState(documentModelEditorOptions[1]);
    const handleSetDocumentEditor = useCallback((value) => {
        const option = documentModelEditorOptions.find((dm) => dm.value == value);
        if (option) {
            setDocumentModelEditor(option);
        }
    }, []);
    return (_jsx(BaseDefaultEditor, { documentModelEditor: documentModelEditor.value, setDocumentModelEditor: handleSetDocumentEditor, documentModelEditorOptions: documentModelEditorOptions }));
};
//# sourceMappingURL=default-editor.js.map