2016-11-12 14:33:21 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import AutosuggestAccount from '../components/autosuggest_account';
|
|
|
|
import { makeGetAccount } from '../../../selectors';
|
|
|
|
|
|
|
|
const makeMapStateToProps = () => {
|
|
|
|
const getAccount = makeGetAccount();
|
|
|
|
|
|
|
|
const mapStateToProps = (state, { id }) => ({
|
2017-05-20 17:31:47 +02:00
|
|
|
account: getAccount(state, id),
|
2016-11-12 14:33:21 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
return mapStateToProps;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(makeMapStateToProps)(AutosuggestAccount);
|