about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/compose/containers/autosuggest_status_container.jsx
blob: ef46eb09caa9d6cf29164ab8e4d9fc0ce8a192de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { connect } from 'react-redux';
import AutosuggestStatus from '../components/autosuggest_status';
import { makeGetStatus } from '../../../selectors';

const makeMapStateToProps = () => {
  const getStatus = makeGetStatus();

  const mapStateToProps = (state, { id }) => ({
    status: getStatus(state, id)
  });

  return mapStateToProps;
};

export default connect(makeMapStateToProps)(AutosuggestStatus);