spee.ch/react/containers/PublishTool/view.jsx
2018-03-01 17:16:04 -08:00

22 lines
494 B
JavaScript

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