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