import React , { FC } from 'react' ; import { EuiButton } from '@elastic/eui' ; import { FormattedMessage } from '@kbn/i18n-react' ; interface RefreshTransformListButton { isLoading : boolean ; onClick ( ) : void ; } export const RefreshTransformListButton = ( { onClick , isLoading , } ) => ( < EuiButton color = "success" iconType = "refresh" data - test - subj = { `transformRefreshTransformListButton${ isLoading ? ' loading' : ' loaded' }` } onClick = { onClick } isLoading = { isLoading } > < FormattedMessage id = "xpack.transform.transformList.refreshButtonLabel" defaultMessage = "Reload" / > < /EuiButton>);