2020-02-12 13:59:48 -05:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doOpenModal } from 'redux/actions/app';
|
2021-10-07 23:47:39 -04:00
|
|
|
import { makeSelectTagInClaimOrChannelForUri, makeSelectClaimForUri } from 'redux/selectors/claims';
|
2020-11-10 00:21:04 -05:00
|
|
|
import ClaimSupportButton from './view';
|
2020-02-12 13:59:48 -05:00
|
|
|
|
2020-10-27 15:54:36 -04:00
|
|
|
const DISABLE_SUPPORT_TAG = 'disable-support';
|
|
|
|
const select = (state, props) => ({
|
|
|
|
disableSupport: makeSelectTagInClaimOrChannelForUri(props.uri, DISABLE_SUPPORT_TAG)(state),
|
2021-01-15 09:11:35 -05:00
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
2020-10-27 15:54:36 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, {
|
|
|
|
doOpenModal,
|
|
|
|
})(ClaimSupportButton);
|