2017-03-23 03:36:34 +11:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import AutosuggestStatus from '../components/autosuggest_status';
|
|
|
|
import { makeGetStatus } from '../../../selectors';
|
|
|
|
|
|
|
|
const makeMapStateToProps = () => {
|
|
|
|
const getStatus = makeGetStatus();
|
|
|
|
|
|
|
|
const mapStateToProps = (state, { id }) => ({
|
2017-05-21 01:31:47 +10:00
|
|
|
status: getStatus(state, id),
|
2017-03-23 03:36:34 +11:00
|
|
|
});
|
|
|
|
|
|
|
|
return mapStateToProps;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(makeMapStateToProps)(AutosuggestStatus);
|