import React , { FC } from 'react' ; import { EuiLoadingChart , EuiSpacer } from '@elastic/eui' ; export const LoadingIndicator = ( { height , label } ) => { height = height ? + height : 100 ; return ( < div className = "ml-loading-indicator" style = { { height : `${ height }px` } } data - test - subj = "mlLoadingIndicator" > < EuiLoadingChart size = "xl" mono / > { label && ( < > < EuiSpacer size = "s" / > < div > { label } < /div> < />)} < /div>); } ;