import { application , screen } from '@emeraldwallet/store' ; import React from 'react' ; import { connect } from 'react-redux' ; import InitialSetup from './InitialSetupView' ; export default connect ( ( state , ownProps ) => ( { terms : application . selectors . terms ( state ) } ) , ( dispatch , ownProps ) => ( { onTermsAgreed : ( ) => { dispatch ( application . actions . agreeOnTerms ( ownProps . currentTermsVersion ) ) ; dispatch ( screen . actions . gotoScreen ( screen . Pages . HOME ) ) ; } } ) ) ( InitialSetup ) ;