mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
15 lines
536 B
JavaScript
15 lines
536 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectIsStillEditing, makeSelectPublishFormValue, doUpdatePublishForm } from 'lbry-redux';
|
|
import PostEditor from './view';
|
|
|
|
const select = (state, props) => ({
|
|
filePath: makeSelectPublishFormValue('filePath')(state),
|
|
fileText: makeSelectPublishFormValue('fileText')(state),
|
|
isStillEditing: selectIsStillEditing(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
updatePublishForm: value => dispatch(doUpdatePublishForm(value)),
|
|
});
|
|
|
|
export default connect(select, perform)(PostEditor);
|