2019-11-30 20:39:51 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import ChannelCreate from './view';
|
2020-01-07 03:19:06 +01:00
|
|
|
import { selectBalance, doCreateChannel } from 'lbry-redux';
|
2019-11-30 20:39:51 +01:00
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
balance: selectBalance(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
createChannel: (name, amount) => dispatch(doCreateChannel(name, amount)),
|
|
|
|
});
|
|
|
|
|
2020-01-07 03:19:06 +01:00
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(ChannelCreate);
|