logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

autosuggest_account_container.js (423B)


  1. import { connect } from 'react-redux';
  2. import AutosuggestAccount from '../components/autosuggest_account';
  3. import { makeGetAccount } from '../../../selectors';
  4. const makeMapStateToProps = () => {
  5. const getAccount = makeGetAccount();
  6. const mapStateToProps = (state, { id }) => ({
  7. account: getAccount(state, id),
  8. });
  9. return mapStateToProps;
  10. };
  11. export default connect(makeMapStateToProps)(AutosuggestAccount);