import React from 'react'; import ActionDispatcher from '../maps-page/action-dispatcher'; import { ActionType } from '../maps-page/action-chooser'; import Editor from '@wisemapping/editor'; import AppI18n from '../../classes/app-i18n'; import { useSelector } from 'react-redux'; import { hotkeysEnabled } from '../../redux/editorSlice'; export type EditorPropsType = { mapId: number; isTryMode: boolean; }; const EditorPage = ({ mapId, ...props }: EditorPropsType): React.ReactElement => { const [activeDialog, setActiveDialog] = React.useState(null); const hotkeys = useSelector(hotkeysEnabled); // Load user locale ... const userLocale = AppI18n.getUserLocale(); return <> { activeDialog && setActiveDialog(null)} mapsId={[mapId]} fromEditor /> } } export default EditorPage;