2022-04-22 08:13:30 -07:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
interface IProgressBar {
|
|
|
|
progress: number,
|
|
|
|
}
|
|
|
|
|
|
|
|
const ProgressBar: React.FC<IProgressBar> = ({ progress }) => (
|
2022-04-24 15:01:57 -07:00
|
|
|
<div className='h-2 w-full rounded-md bg-gray-300 dark:bg-slate-700 overflow-hidden'>
|
|
|
|
<div className='h-full bg-primary-500' style={{ width: `${Math.floor(progress*100)}%` }} />
|
2022-04-22 08:13:30 -07:00
|
|
|
</div>
|
2022-04-22 10:08:37 -07:00
|
|
|
);
|
2022-04-22 08:13:30 -07:00
|
|
|
|
|
|
|
export default ProgressBar;
|