2020-02-12 19:59:48 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doOpenModal } from 'redux/actions/app';
|
|
|
|
import ClaimSupportButton from './view';
|
2020-10-27 20:54:36 +01:00
|
|
|
import { makeSelectTagInClaimOrChannelForUri } from 'lbry-redux';
|
2020-02-12 19:59:48 +01:00
|
|
|
|
2020-10-27 20:54:36 +01:00
|
|
|
const DISABLE_SUPPORT_TAG = 'disable-support';
|
|
|
|
const select = (state, props) => ({
|
|
|
|
disableSupport: makeSelectTagInClaimOrChannelForUri(props.uri, DISABLE_SUPPORT_TAG)(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, {
|
|
|
|
doOpenModal,
|
|
|
|
})(ClaimSupportButton);
|