2017-03-22 16:36:34 +00: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-20 15:31:47 +00:00
|
|
|
status: getStatus(state, id),
|
2017-03-22 16:36:34 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
return mapStateToProps;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(makeMapStateToProps)(AutosuggestStatus);
|