import { Reducer } from 'redux' ; import { VtxconfigSection , VtxStatus } from '../../state/vtxconfig' ; import { IVtxconfigResetComplete } from '../actions/actionTypes' ; export const VtxconfigResetCompleteReducer = ( state , action ) : VtxconfigSection => ( { ... state , reset_status : { txs : false , blocks : false , contracts : false , vtxcache : false , vtxconfig : false , accounts : false } , status : state . web3 === null ? VtxStatus . Idle : VtxStatus . Loaded } ) ;