about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/status/containers/card_container.js
blob: a97404de1903b2b71b5b3a1b0260a274faf2a49d (plain) (blame)
1
2
3
4
5
6
7
8
import { connect } from 'react-redux';
import Card from '../components/card';

const mapStateToProps = (state, { statusId }) => ({
  card: state.getIn(['cards', statusId], null),
});

export default connect(mapStateToProps)(Card);