~cytrogen/masto-fe

ref: 4d5b4dacd655159189287e2bdf4501bdcab36981 masto-fe/app/javascript/mastodon/features/compose/containers/autosuggest_account_container.js -rw-r--r-- 423 bytes
4d5b4dac — Claire Merge branch 'main' into glitch-soc/merge-upstream 3 years ago
                                                                                
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);