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'
|
2020-05-04 21:06:28 +02:00
|
|
|
import { getTitleKey } from '../../../selectors'
|
2020-06-01 19:54:32 +02:00
|
|
|
import { getMostRecentOverviewPage } from '../../../ducks/history/history'
|
2018-04-07 00:29:51 +02:00
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(SendHeader)
|
|
|
|
|
|
|
|
function mapStateToProps (state) {
|
|
|
|
return {
|
2020-06-01 19:54:32 +02:00
|
|
|
mostRecentOverviewPage: getMostRecentOverviewPage(state),
|
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()),
|
|
|
|
}
|
|
|
|
}
|