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
