2018-09-12 18:42:15 +02:00
|
|
|
import { connect } from 'react-redux';
|
2022-01-20 02:46:01 +01:00
|
|
|
import { makeSelectClaimForUri, selectTitleForUri } from 'redux/selectors/claims';
|
2018-09-12 18:42:15 +02:00
|
|
|
import SocialShare from './view';
|
2020-05-06 05:05:59 +02:00
|
|
|
import { makeSelectContentPositionForUri } from 'redux/selectors/content';
|
2021-10-22 04:41:45 +02:00
|
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
|
|
import * as SETTINGS from 'constants/settings';
|
2018-09-12 18:42:15 +02:00
|
|
|
|
|
|
|
const select = (state, props) => ({
|
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
2022-01-20 02:46:01 +01:00
|
|
|
title: selectTitleForUri(state, props.uri),
|
2020-05-06 05:05:59 +02:00
|
|
|
position: makeSelectContentPositionForUri(props.uri)(state),
|
2021-10-22 04:41:45 +02:00
|
|
|
customShareUrlEnabled: makeSelectClientSetting(SETTINGS.CUSTOM_SHARE_URL_ENABLED)(state),
|
|
|
|
customShareUrl: makeSelectClientSetting(SETTINGS.CUSTOM_SHARE_URL)(state),
|
2018-09-12 18:42:15 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select)(SocialShare);
|