19 lines
498 B
JavaScript
19 lines
498 B
JavaScript
import React from "react";
|
|
import { connect } from "react-redux";
|
|
import {
|
|
selectCurrentPage,
|
|
selectHeaderLinks,
|
|
} from "redux/selectors/navigation";
|
|
import { doNavigate } from "redux/actions/navigation";
|
|
import SubHeader from "./view";
|
|
|
|
const select = (state, props) => ({
|
|
currentPage: selectCurrentPage(state),
|
|
subLinks: selectHeaderLinks(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
navigate: path => dispatch(doNavigate(path)),
|
|
});
|
|
|
|
export default connect(select, perform)(SubHeader);
|