import React from 'react'; import PreviewDropzone from './previewDropzone.jsx'; import TitleInput from './titleInput.jsx'; import ChannelSelector from './channelSelector.jsx'; import UrlChooser from './urlChooser.jsx'; import ThumbnailInput from './thumbnailInput.jsx'; import MetadataInputs from './metadataInputs.jsx'; class AnonymousOrChannelSelect extends React.Component { constructor (props) { super(props); this.toggleAnonymousPublish = this.toggleAnonymousPublish.bind(this); } toggleAnonymousPublish (event) { const value = event.target.value; if (value === 'anonymous') { this.props.updateUploaderState('publishToChannel', false); } else { this.props.updateUploaderState('publishToChannel', true); } } render () { return (
); } } class PublishForm extends React.Component { constructor (props) { super(props); this.state = { channelError: null, } // set defaults this.updateUploaderState = this.updateUploaderState.bind(this); this.clearUploaderState = this.clearUploaderState.bind(this); this.publish = this.publish.bind(this); } updateUploaderState (name, value) { this.props.updateUploaderState(name, value); } clearUploaderState () { this.props.clearUploaderState(); } publish () { // publish the asset } render () { return (
{ (this.props.file.type === 'video/mp4') && }

By clicking 'Upload', you affirm that you have the rights to publish this content to the LBRY network, and that you understand the properties of publishing it to a decentralized, user-controlled network. Read more.

); } }; module.exports = PublishForm;