import { useAppState } from '../../../../Application' ; import EditorOld from './editor-old' ; import Selectors from '../../../../selectors' ; export default ( properties ) : React . ReactElement => { const { state } = useAppState ( ) ; const selectors = Selectors ( state , properties ) ; const editorProperties = { mobilization : selectors . getMobilization ( ) , onEdit : ( ) => console . log ( "onEdit editor" ) , onCancelEdit : ( ) => console . log ( "onCancelEdit editor" ) } ; return < EditorOld { ... properties } { ... editorProperties } />; } ;