import cx from 'classnames'; import { DEFAULT_WIDTH } from '../constants'; import ProgressInfo from './ProgressInfo'; import { IProgressInstanceProps } from '../types'; const LineProgress: React.FC = props => { const { format, width, percent, showInfo, strokeWidth, bgColor, color, state, strokeLinecap, } = props; const progressWidth = width || DEFAULT_WIDTH.LINE; const progressInfo = showInfo && (
); return (
{progressInfo}
); }; export default LineProgress;