import { Reducer } from 'redux' ; import { BlocksSection } from '../../state/blocks' ; import { IBlocksNew } from '../actions/actionTypes' ; export const BlocksNewReducer = ( state , action ) : BlocksSection => ( { ... state , blocks : { ... state . blocks , [ action . number ] : action . block_infos } } ) ;