16 lines
378 B
JavaScript
16 lines
378 B
JavaScript
|
import { connect } from 'react-redux';
|
||
|
import { selectChannelIsBlocked, doToggleBlockChannel, doToast } from 'lbry-redux';
|
||
|
import BlockButton from './view';
|
||
|
|
||
|
const select = (state, props) => ({
|
||
|
channelIsBlocked: selectChannelIsBlocked(props.uri)(state),
|
||
|
});
|
||
|
|
||
|
export default connect(
|
||
|
select,
|
||
|
{
|
||
|
toggleBlockChannel: doToggleBlockChannel,
|
||
|
doToast,
|
||
|
}
|
||
|
)(BlockButton);
|