2018-09-12 12:42:15 -04:00
|
|
|
import { connect } from 'react-redux';
|
2021-11-16 12:23:18 +08:00
|
|
|
import { makeSelectClaimForUri, selectTitleForUri } from 'redux/selectors/claims';
|
2018-09-12 12:42:15 -04:00
|
|
|
import SocialShare from './view';
|
2020-06-15 16:33:03 -04:00
|
|
|
import { selectUserInviteReferralCode, selectUser } from 'redux/selectors/user';
|
2020-05-05 20:05:59 -07:00
|
|
|
import { makeSelectContentPositionForUri } from 'redux/selectors/content';
|
2018-09-12 12:42:15 -04:00
|
|
|
|
|
|
|
const select = (state, props) => ({
|
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
2020-01-14 15:44:07 -05:00
|
|
|
referralCode: selectUserInviteReferralCode(state),
|
|
|
|
user: selectUser(state),
|
2021-11-16 12:23:18 +08:00
|
|
|
title: selectTitleForUri(state, props.uri),
|
2020-05-05 20:05:59 -07:00
|
|
|
position: makeSelectContentPositionForUri(props.uri)(state),
|
2018-09-12 12:42:15 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select)(SocialShare);
|