import React , { FC } from 'react' ; import { EuiProgress } from '@elastic/eui' ; interface Props { progress : number ; } export const JobProgress = ( { progress } ) => { if ( progress > 0 && progress < 100 ) { return < EuiProgress value = { progress } color = "primary" size = "xs" max = { 100 } / > ; } else { return null ; } } ;