spee.ch/react/containers/PublishTool/view.jsx
2018-01-17 10:49:57 -08:00

25 lines
569 B
JavaScript

import React from 'react';
import Dropzone from '../Dropzone';
import PublishForm from '../PublishForm';
import PublishStatus from '../../components/PublishStatus.jsx';
class PublishTool extends React.Component {
render () {
if (this.props.file) {
if (this.props.status) {
return (
<PublishStatus
status={this.props.status}
message={this.props.message}
/>
);
} else {
return <PublishForm />;
}
} else {
return <Dropzone />;
}
}
};
export default PublishTool;