514bc0a273
* remove referral code from share * cleanup
16 lines
770 B
JavaScript
16 lines
770 B
JavaScript
import { connect } from 'react-redux';
|
|
import { makeSelectClaimForUri, makeSelectTitleForUri } from 'redux/selectors/claims';
|
|
import SocialShare from './view';
|
|
import { makeSelectContentPositionForUri } from 'redux/selectors/content';
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
import * as SETTINGS from 'constants/settings';
|
|
|
|
const select = (state, props) => ({
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
|
title: makeSelectTitleForUri(props.uri)(state),
|
|
position: makeSelectContentPositionForUri(props.uri)(state),
|
|
customShareUrlEnabled: makeSelectClientSetting(SETTINGS.CUSTOM_SHARE_URL_ENABLED)(state),
|
|
customShareUrl: makeSelectClientSetting(SETTINGS.CUSTOM_SHARE_URL)(state),
|
|
});
|
|
|
|
export default connect(select)(SocialShare);
|