about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/compose/containers/autosuggest_account_container.js
blob: de76a364d06615119584cad4a5ab00be7d5f5ca9 (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 '../../../selectors';

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

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

  return mapStateToProps;
};

export default connect(makeMapStateToProps)(AutosuggestAccount);