import './styles.scss'; import React from 'react'; import { Layout, Spin, Result, } from 'antd'; import AnnotationTopBarComponent from './top-bar/top-bar'; import StandardWorkspaceComponent from './standard-workspace/standard-workspace'; interface Props { jobInstance: any | null | undefined; fetching: boolean; getJob(): void; } export default function AnnotationPageComponent(props: Props): JSX.Element { const { jobInstance, fetching, getJob, } = props; if (jobInstance === null) { if (!fetching) { getJob(); } return ; } if (typeof (jobInstance) === 'undefined') { return ( ); } return ( ); }