import { observer } from "mobx-react" ; import * as React from "react" ; import LoadAction from "../../../classes/status/LoadAction" ; import StatusActionQueue from "../../../classes/status/StatusActionQueue" ; import LoadingImage from "./LoadingImage" ; import LoadingQueue from "./LoadingQueue" ; @ observer export default class Loading extends React . Component < { loadingQueue : StatusActionQueue < LoadAction > ; } , any > { public render ( ) { if ( ! this . props . loadingQueue . isEmpty ) { return ( < div > < LoadingImage /> < LoadingQueue loadingQueue = { this . props . loadingQueue } / > < /div>); } else { return < div />; } } }