import { EuiEmptyPrompt , EuiLoadingSpinner , EuiSpacer , EuiTitle , } from '@elastic/eui' ; import { i18n } from '@kbn/i18n' ; import React , { Fragment } from 'react' ; export function EmptyStateLoading ( ) { return ( < EuiEmptyPrompt body = { < Fragment > < EuiLoadingSpinner size = "xl" / > < EuiSpacer /> < EuiTitle size = "l" > < h2 > { i18n . translate ( 'xpack.apm.emptyState.loadingMessage' , { defaultMessage : 'Loading…' , } ) } < /h2> < /EuiTitle> < /Fragment>}/ > ) ; }