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