2018-04-07 00:29:51 +02:00
|
|
|
import { connect } from 'react-redux'
|
|
|
|
import { goHome, clearSend } from '../../../actions'
|
|
|
|
import SendHeader from './send-header.component'
|
|
|
|
import { getSelectedToken } from '../../../selectors'
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(SendHeader)
|
|
|
|
|
|
|
|
function mapStateToProps (state) {
|
|
|
|
return {
|
2018-04-27 02:38:14 +02:00
|
|
|
isToken: Boolean(getSelectedToken(state)),
|
2018-04-07 00:29:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function mapDispatchToProps (dispatch) {
|
|
|
|
return {
|
|
|
|
clearSend: () => dispatch(clearSend()),
|
2018-04-27 02:38:14 +02:00
|
|
|
goHome: () => dispatch(goHome()),
|
2018-04-07 00:29:51 +02:00
|
|
|
}
|
|
|
|
}
|