import React from 'react' ; import { EuiLoadingSpinner , EuiTextColor } from '@elastic/eui' ; interface ComponentLoaderProps { text ? : string ; } import './component_loader.scss' ; export const ComponentLoader = ( { text = 'Loading...' } ) => ( < div className = "componentLoader" > < EuiLoadingSpinner size = "l" / > < EuiTextColor className = "componentLoaderText" color = "subdued" > { text } < /EuiTextColor> < /div>);