mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
19 lines
462 B
JavaScript
19 lines
462 B
JavaScript
import { connect } from 'react-redux'
|
|
import { clearSend } from '../../../actions'
|
|
import SendHeader from './send-header.component'
|
|
import { getSelectedToken } from '../../../selectors'
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(SendHeader)
|
|
|
|
function mapStateToProps (state) {
|
|
return {
|
|
isToken: Boolean(getSelectedToken(state)),
|
|
}
|
|
}
|
|
|
|
function mapDispatchToProps (dispatch) {
|
|
return {
|
|
clearSend: () => dispatch(clearSend()),
|
|
}
|
|
}
|