16 lines
376 B
JavaScript
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);
|