Thibaut Girka ac9780b844 [Glitch] Include preview cards in status entity in REST API
Port 795f0107d23c1c9bd039f6449fa1e094ab7653a7 to glitch-soc
2018-10-30 17:51:06 +01:00

9 lines
242 B
JavaScript

import { connect } from 'react-redux';
import Card from '../components/card';
const mapStateToProps = (state, { statusId }) => ({
card: state.getIn(['statuses', statusId, 'card'], null),
});
export default connect(mapStateToProps)(Card);