~cytrogen/masto-fe

ref: 9cde97cabcb3b1c40632950d681ac3d11218e164 masto-fe/app/javascript/mastodon/features/compose/containers/autosuggest_account_container.js -rw-r--r-- 424 bytes
9cde97ca — Cytrogen Merge PR #84: Confirmation dialogs a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { connect } from "react-redux";

import { makeGetAccount } from "../../../selectors";
import AutosuggestAccount from "../components/autosuggest_account";

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

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

  return mapStateToProps;
};

export default connect(makeMapStateToProps)(AutosuggestAccount);