mastodon/app/javascript/flavours/glitch/features/status/containers/card_container.js
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);