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

26 lines
569 B
React
Raw Normal View History

import React from 'react';
2018-01-17 19:49:57 +01:00
import Dropzone from '../Dropzone';
import PublishForm from '../PublishForm';
import PublishStatus from '../../components/PublishStatus.jsx';
2018-01-06 03:26:57 +01:00
class PublishTool extends React.Component {
render () {
2018-01-12 00:37:32 +01: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-12 02:38:01 +01:00
return <Dropzone />;
2018-01-12 00:37:32 +01:00
}
}
};
2018-01-17 19:49:57 +01:00
export default PublishTool;