lbry-desktop/ui/component/channelCreate/index.js

17 lines
376 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import ChannelCreate from './view';
2020-01-07 03:19:06 +01:00
import { selectBalance, doCreateChannel } from 'lbry-redux';
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);