2016-11-12 22:33:21 +09:00
|
|
|
import { connect } from 'react-redux';
|
2023-05-24 00:15:17 +09:00
|
|
|
|
2016-11-12 22:33:21 +09:00
|
|
|
import { makeGetAccount } from '../../../selectors';
|
2023-05-24 00:15:17 +09:00
|
|
|
import AutosuggestAccount from '../components/autosuggest_account';
|
2016-11-12 22:33:21 +09:00
|
|
|
|
|
|
|
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);
|