bigbuffet-rw/app/soapbox/components/progress_bar.tsx
marcin mikołajczak 8f848877a0 yarn lint:js
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-04-22 19:08:37 +02:00

13 lines
311 B
TypeScript

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>
);
export default ProgressBar;