Skip to content

Instantly share code, notes, and snippets.

@LukeSmetham
Created October 1, 2019 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LukeSmetham/72e9abbdc942bcebd69582cf59cb0de8 to your computer and use it in GitHub Desktop.
Save LukeSmetham/72e9abbdc942bcebd69582cf59cb0de8 to your computer and use it in GitHub Desktop.
...
import { connect } from 'react-redux';
// Selectors //
import { createStructuredSelector } from 'reselect';
import { makeSelectUnreadCount } from 'data/chat/selectors';
...
const mapStateToProps = createStructuredSelector({
unreadCount: makeSelectUnreadCount(),
});
export default connect(mapStateToProps)(ActionsButtons);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment