2019-06-28 09:27:55 +02:00
|
|
|
import { connect } from 'react-redux';
|
2019-07-03 04:30:34 +02:00
|
|
|
import { makeSelectPublishFormValue, selectIsStillEditing } from 'lbry-redux';
|
2019-06-28 09:27:55 +02:00
|
|
|
import PublishPage from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
2020-07-28 04:19:00 +02:00
|
|
|
bid: makeSelectPublishFormValue('bid')(state),
|
2019-06-28 09:27:55 +02:00
|
|
|
name: makeSelectPublishFormValue('name')(state),
|
|
|
|
title: makeSelectPublishFormValue('title')(state),
|
2020-03-02 18:11:14 +01:00
|
|
|
bidError: makeSelectPublishFormValue('bidError')(state),
|
2019-06-28 09:27:55 +02:00
|
|
|
editingUri: makeSelectPublishFormValue('editingUri')(state),
|
|
|
|
uploadThumbnailStatus: makeSelectPublishFormValue('uploadThumbnailStatus')(state),
|
|
|
|
isStillEditing: selectIsStillEditing(state),
|
|
|
|
});
|
|
|
|
|
2020-07-28 04:19:00 +02:00
|
|
|
export default connect(select, null)(PublishPage);
|