2016-11-12 15:33:21 +02: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 18:31:47 +03:00
|
|
|
account: getAccount(state, id),
|
2016-11-12 15:33:21 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
return mapStateToProps;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(makeMapStateToProps)(AutosuggestAccount);
|