import { Reducer } from 'redux' ; import { IVtxconfigSetInfos } from '../actions/actionTypes' ; import { VtxconfigSection } from '../../state/vtxconfig' ; export const VtxconfigSetInfosReducer = ( state , action ) : VtxconfigSection => ( { ... state , coinbase : action . coinbase , net_id : action . net } ) ;