spee.ch/react/containers/PublishTool/view.jsx

26 lines
575 B
React
Raw Normal View History

import React from 'react';
2018-01-17 15:00:03 -08:00
import Dropzone from 'containers/Dropzone';
import PublishForm from 'containers/PublishForm';
import PublishStatus from 'components/PublishStatus';
2018-01-05 18:26:57 -08:00
class PublishTool extends React.Component {
render () {
2018-01-11 15:37:32 -08:00
if (this.props.file) {
if (this.props.status) {
return (
<PublishStatus
status={this.props.status}
message={this.props.message}
/>
);
} else {
return <PublishForm />;
}
} else {
2018-01-11 17:38:01 -08:00
return <Dropzone />;
2018-01-11 15:37:32 -08:00
}
}
};
2018-01-17 10:49:57 -08:00
export default PublishTool;