import React, { FC, HTMLAttributes } from 'react' import classNames from 'classnames' import SVGSuccessCircle from '../../svg/success-circle.svg' import SVGCloseCircle from '../../svg/close-circle.svg' import { Flex } from '../flex' interface ProgressProps extends HTMLAttributes { percentage: number type?: 'success' | 'danger' disabledText?: boolean } const Progress: FC = ({ percentage, type, disabledText, className, ...rest }) => { return (
{type === 'success' && } {type === 'danger' && }
{!type && !disabledText && (
{`${percentage}%`}
)} ) } export default Progress export type { ProgressProps }