import { observer } from 'mobx-react'; import { ViewBoxAnnotatableComponent } from '../DocComponent'; import { FieldView, FieldViewProps } from './FieldView'; import * as React from 'react'; import './LoadingBox.scss'; import ReactLoading from 'react-loading'; export interface LoadingBoxProps { title: string; text: string; } @observer export class LoadingBox extends ViewBoxAnnotatableComponent() { public static LayoutString(fieldKey: string) { return FieldView.LayoutString(LoadingBox, fieldKey); } constructor(props: any) { super(props); } render() { return (
Loading: {this.dataDoc.text}
); } }