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