16 lines
479 B
JavaScript
16 lines
479 B
JavaScript
import React from "react";
|
|
import { connect } from "react-redux";
|
|
import { selectIsSearching, selectSearchQuery } from "redux/selectors/search";
|
|
import { doNavigate } from "redux/actions/navigation";
|
|
import SearchPage from "./view";
|
|
|
|
const select = state => ({
|
|
isSearching: selectIsSearching(state),
|
|
query: selectSearchQuery(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
navigate: path => dispatch(doNavigate(path)),
|
|
});
|
|
|
|
export default connect(select, perform)(SearchPage);
|