2017-06-06 06:21:55 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { selectCurrentPage, selectHeaderLinks } from 'selectors/app';
|
|
|
|
import { doNavigate } from 'actions/app';
|
|
|
|
import SubHeader from './view';
|
2017-05-05 07:28:28 +02:00
|
|
|
|
|
|
|
const select = (state, props) => ({
|
2017-06-06 06:21:55 +02:00
|
|
|
currentPage: selectCurrentPage(state),
|
|
|
|
subLinks: selectHeaderLinks(state)
|
|
|
|
});
|
2017-05-05 07:28:28 +02:00
|
|
|
|
2017-06-06 06:21:55 +02:00
|
|
|
const perform = dispatch => ({
|
|
|
|
navigate: path => dispatch(doNavigate(path))
|
|
|
|
});
|
2017-05-05 07:28:28 +02:00
|
|
|
|
2017-06-06 06:21:55 +02:00
|
|
|
export default connect(select, perform)(SubHeader);
|