import "./index.scss";
import React = require("react");
import { Status } from "@tandem/common/status";
export class StatusComponent extends React.Component<{ status: Status, className?: string, style?: any }, any> {
render() {
const { status, className, style } = this.props;
let section;
if (status) {
if (status.type === Status.LOADING) {
section =
} else if (status.type === Status.ERROR) {
section =
} else if (status.type === Status.COMPLETED) {
section =
}
}
return
{ section || }
;
}
}