mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-28 16:01:26 +00:00
16 lines
460 B
JavaScript
16 lines
460 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectChannelIsBlocked, doToggleBlockChannel, doToast, makeSelectShortUrlForUri } from 'lbry-redux';
|
|
import BlockButton from './view';
|
|
|
|
const select = (state, props) => ({
|
|
channelIsBlocked: selectChannelIsBlocked(props.uri)(state),
|
|
shortUrl: makeSelectShortUrlForUri(props.uri)(state),
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
{
|
|
toggleBlockChannel: doToggleBlockChannel,
|
|
doToast,
|
|
}
|
|
)(BlockButton);
|