2018-04-07 00:29:51 +02:00
|
|
|
import { connect } from 'react-redux'
|
2019-04-17 21:15:13 +02:00
|
|
|
import { clearSend } from '../../../store/actions'
|
2018-04-07 00:29:51 +02:00
|
|
|
import SendHeader from './send-header.component'
|
2019-09-18 23:41:36 +02:00
|
|
|
import { getTitleKey } from './send-header.selectors'
|
2018-04-07 00:29:51 +02:00
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(SendHeader)
|
|
|
|
|
|
|
|
function mapStateToProps (state) {
|
|
|
|
return {
|
2018-05-24 21:57:33 +02:00
|
|
|
titleKey: getTitleKey(state),
|
2018-04-07 00:29:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function mapDispatchToProps (dispatch) {
|
|
|
|
return {
|
|
|
|
clearSend: () => dispatch(clearSend()),
|
|
|
|
}
|
|
|
|
}
|