[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

5 years ago
5 years ago
  1. import React, { FC } from 'react'
  2. import { useTheme } from '../hooks'
  3. interface Props {
  4. value: number
  5. }
  6. const Progress: FC<Props> = ({ value }) => {
  7. const theme = useTheme()
  8. return (
  9. <div className="progress" style={{ backgroundColor: theme.backgroundSecondary, borderColor: theme.primary }}>
  10. <div style={{ backgroundColor: theme.secondary, width: `${value}%`}}></div>
  11. </div>
  12. )
  13. }
  14. export default Progress