import React from 'react'; import { useIntl } from 'react-intl'; import ActionDispatcher from '../action-dispatcher'; import { ActionType } from '../action-chooser'; import WiseEditor from '@wisemapping/editor'; export type EditorPropsType = { mapId: number; memoryPersistence: boolean; readOnlyMode: boolean; }; export default function Editor({ mapId, ...props } : EditorPropsType): React.ReactElement { const [activeDialog, setActiveDialog] = React.useState(null); const intl = useIntl(); return <> { activeDialog && setActiveDialog(null)} mapsId={[mapId]} fromEditor /> } }