lbry-desktop/ui/component/channelCreate/index.js
2020-01-07 14:22:13 -05:00

16 lines
376 B
JavaScript

import { connect } from 'react-redux';
import ChannelCreate from './view';
import { selectBalance, doCreateChannel } from 'lbry-redux';
const select = state => ({
balance: selectBalance(state),
});
const perform = dispatch => ({
createChannel: (name, amount) => dispatch(doCreateChannel(name, amount)),
});
export default connect(
select,
perform
)(ChannelCreate);