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