import React, { FC } from 'react'; import { connect } from 'react-redux'; import * as EDITOR_ACTIONS from '~/redux/editor/actions'; const mapStateToProps = () => ({}); const mapDispatchToProps = { editorClearPoly: EDITOR_ACTIONS.editorClearPoly, editorClearStickers: EDITOR_ACTIONS.editorClearStickers, editorClearAll: EDITOR_ACTIONS.editorClearAll, editorClearCancel: EDITOR_ACTIONS.editorClearCancel, }; type Props = ReturnType & typeof mapDispatchToProps & { width: number; }; const TrashDialogUnconnected: FC = ({ editorClearPoly, editorClearStickers, editorClearAll, editorClearCancel, width, }) => (
Все изменения будут удалены!
Маршрут
Стикеры
ВСЕ
Отмена
); const TrashDialog = connect(mapStateToProps, mapDispatchToProps)(TrashDialogUnconnected); export { TrashDialog };