The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
414 B

  1. import { connect } from 'react-redux';
  2. import AutosuggestStatus from '../components/autosuggest_status';
  3. import { makeGetStatus } from '../../../selectors';
  4. const makeMapStateToProps = () => {
  5. const getStatus = makeGetStatus();
  6. const mapStateToProps = (state, { id }) => ({
  7. status: getStatus(state, id)
  8. });
  9. return mapStateToProps;
  10. };
  11. export default connect(makeMapStateToProps)(AutosuggestStatus);