2022-04-22 08:13:30 -07:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
interface IProgressBar {
|
|
|
|
progress: number,
|
|
|
|
}
|
|
|
|
|
|
|
|
const ProgressBar: React.FC<IProgressBar> = ({ progress }) => (
|
|
|
|
<div className='progress-bar'>
|
|
|
|
<div className='progress-bar__progress' style={{ width: `${Math.floor(progress*100)}%` }} />
|
|
|
|
</div>
|
2022-04-22 10:08:37 -07:00
|
|
|
);
|
2022-04-22 08:13:30 -07:00
|
|
|
|
|
|
|
export default ProgressBar;
|