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