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