import React from 'react'; import { connect } from 'react-redux'; import { Link, NavLink } from 'react-router-dom'; import FontAwesome from 'react-fontawesome'; import query from 'query-string'; import { search_criteria, search_qs, update_filter } from '../search'; function render(props) { const { dispatch, router } = props; const qs = query.parse(router.location.search); const update = text => update_filter( text || "", props.filter_subscribe, router.location, dispatch); const navto = where => e => { e.preventDefault(); update(where); }; const searchLink = (target, text) =>
  • {text}
  • ; return ; } export default connect(state => ({ filter_subscribe: state.filter_subscribe, router: state.router, }))(render);