about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/compose/containers/autosuggest_account_container.js
blob: 0e1c328fe907caa3ad48a50b10429e98f814a2c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { connect } from 'react-redux';
import AutosuggestAccount from '../components/autosuggest_account';
import { makeGetAccount } from 'flavours/glitch/selectors';

const makeMapStateToProps = () => {
  const getAccount = makeGetAccount();

  const mapStateToProps = (state, { id }) => ({
    account: getAccount(state, id),
  });

  return mapStateToProps;
};

export default connect(makeMapStateToProps)(AutosuggestAccount);