2018-09-12 12:42:15 -04:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-07 23:47:39 -04:00
|
|
|
import { makeSelectClaimForUri, makeSelectTitleForUri } from 'redux/selectors/claims';
|
2018-09-12 12:42:15 -04:00
|
|
|
import SocialShare from './view';
|
2020-05-05 20:05:59 -07:00
|
|
|
import { makeSelectContentPositionForUri } from 'redux/selectors/content';
|
2021-10-21 22:41:45 -04:00
|
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
|
|
import * as SETTINGS from 'constants/settings';
|
2018-09-12 12:42:15 -04:00
|
|
|
|
|
|
|
const select = (state, props) => ({
|
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
2020-03-30 15:43:27 -04:00
|
|
|
title: makeSelectTitleForUri(props.uri)(state),
|
2020-05-05 20:05:59 -07:00
|
|
|
position: makeSelectContentPositionForUri(props.uri)(state),
|
2021-10-21 22:41:45 -04:00
|
|
|
customShareUrlEnabled: makeSelectClientSetting(SETTINGS.CUSTOM_SHARE_URL_ENABLED)(state),
|
|
|
|
customShareUrl: makeSelectClientSetting(SETTINGS.CUSTOM_SHARE_URL)(state),
|
2018-09-12 12:42:15 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select)(SocialShare);
|