339945018d
and refactor history
14 lines
344 B
JavaScript
14 lines
344 B
JavaScript
import React from "react";
|
|
import { connect } from "react-redux";
|
|
import Router from "./view.jsx";
|
|
import {
|
|
selectCurrentPage,
|
|
selectCurrentParams,
|
|
} from "selectors/navigation.js";
|
|
|
|
const select = state => ({
|
|
params: selectCurrentParams(state),
|
|
currentPage: selectCurrentPage(state),
|
|
});
|
|
|
|
export default connect(select, null)(Router);
|