[ABANDONED] React/Redux front end for the Flexor social network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
451 B

import React, { FC } from 'react'
import { useTheme } from '../hooks'
interface Props {
value: number
}
const Progress: FC<Props> = ({ value }) => {
const theme = useTheme()
return (
<div className="progress" style={{ backgroundColor: theme.backgroundSecondary, borderColor: theme.primary }}>
<div style={{ backgroundColor: theme.secondary, width: `${value}%`}}></div>
</div>
)
}
export default Progress