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
452 B
17 lines
452 B
import React, { FC } from 'react'
|
|
import { useTheme } from 'src/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
|