2018-09-12 18:42:15 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-17 10:36:14 +02:00
|
|
|
import { makeSelectClaimForUri, makeSelectTitleForUri } from 'redux/selectors/claims';
|
2018-09-12 18:42:15 +02:00
|
|
|
import SocialShare from './view';
|
2020-06-15 22:33:03 +02:00
|
|
|
import { selectUserInviteReferralCode, selectUser } from 'redux/selectors/user';
|
2020-05-06 05:05:59 +02:00
|
|
|
import { makeSelectContentPositionForUri } from 'redux/selectors/content';
|
2018-09-12 18:42:15 +02:00
|
|
|
|
|
|
|
const select = (state, props) => ({
|
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
2020-01-14 21:44:07 +01:00
|
|
|
referralCode: selectUserInviteReferralCode(state),
|
|
|
|
user: selectUser(state),
|
2020-03-30 21:43:27 +02:00
|
|
|
title: makeSelectTitleForUri(props.uri)(state),
|
2020-05-06 05:05:59 +02:00
|
|
|
position: makeSelectContentPositionForUri(props.uri)(state),
|
2018-09-12 18:42:15 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select)(SocialShare);
|