lbry-desktop/ui/modal/modalRepost/index.js
Sean Yesmunt e1cfe6aa9a cleanup
2020-02-11 11:09:55 -05:00

37 lines
885 B
JavaScript

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import {
makeSelectClaimForUri,
makeSelectTitleForUri,
selectBalance,
selectMyChannelClaims,
doRepost,
selectRepostError,
selectRepostLoading,
doClearRepostError,
doToast,
selectMyClaimsWithoutChannels,
doFetchClaimListMine,
} from 'lbry-redux';
import ModalRepost from './view';
const select = (state, props) => ({
channels: selectMyChannelClaims(state),
claim: makeSelectClaimForUri(props.uri)(state),
title: makeSelectTitleForUri(props.uri)(state),
balance: selectBalance(state),
error: selectRepostError(state),
reposting: selectRepostLoading(state),
myClaims: selectMyClaimsWithoutChannels(state),
});
export default connect(
select,
{
doHideModal,
doRepost,
doClearRepostError,
doToast,
doFetchClaimListMine,
}
)(ModalRepost);