mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
17 lines
462 B
JavaScript
17 lines
462 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectPublishFormValues, doUpdatePublishForm, doToast } from 'lbry-redux';
|
|
import PublishPage from './view';
|
|
|
|
const select = state => ({
|
|
...selectPublishFormValues(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
updatePublishForm: value => dispatch(doUpdatePublishForm(value)),
|
|
showToast: message => dispatch(doToast({ isError: true, message })),
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(PublishPage);
|