2019-06-28 03:27:55 -04:00
|
|
|
import { connect } from 'react-redux';
|
2019-07-02 22:30:34 -04:00
|
|
|
import { makeSelectPublishFormValue, selectIsStillEditing } from 'lbry-redux';
|
2019-06-28 03:27:55 -04:00
|
|
|
import PublishPage from './view';
|
|
|
|
|
2021-04-15 22:52:41 -04:00
|
|
|
const select = (state) => ({
|
2020-07-27 21:19:00 -05:00
|
|
|
bid: makeSelectPublishFormValue('bid')(state),
|
2019-06-28 03:27:55 -04:00
|
|
|
name: makeSelectPublishFormValue('name')(state),
|
|
|
|
title: makeSelectPublishFormValue('title')(state),
|
2020-03-02 12:11:14 -05:00
|
|
|
bidError: makeSelectPublishFormValue('bidError')(state),
|
2020-07-30 01:46:56 -05:00
|
|
|
editingURI: makeSelectPublishFormValue('editingURI')(state),
|
2019-06-28 03:27:55 -04:00
|
|
|
uploadThumbnailStatus: makeSelectPublishFormValue('uploadThumbnailStatus')(state),
|
2021-04-21 11:30:21 +08:00
|
|
|
thumbnail: makeSelectPublishFormValue('thumbnail')(state),
|
2021-04-21 11:31:54 +08:00
|
|
|
thumbnailError: makeSelectPublishFormValue('thumbnailError')(state),
|
2019-06-28 03:27:55 -04:00
|
|
|
isStillEditing: selectIsStillEditing(state),
|
|
|
|
});
|
|
|
|
|
2020-07-27 21:19:00 -05:00
|
|
|
export default connect(select, null)(PublishPage);
|