import React from 'react'; import { MODES } from '$constants/modes'; import { Icon } from '$components/panels/Icon'; type Props = { stopEditing: Function, setMode: Function, width: Number, }; export class CancelDialog extends React.Component { cancel = () => { this.props.stopEditing(); // editor.cancelEditing(); // this.props.setEditing(false); // this.props.setMode(MODES.NONE); }; proceed = () => { this.props.setMode(MODES.NONE); }; render() { const { width } = this.props; return (
Закрыть редактор?
Удалить измения
Вернуться
); } }