File size: 624 Bytes
96a945a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { LinearProgress, Box } from '@mui/material';

export default function ProgressBar({ current, total }) {
  const value = total > 0 ? (current / total) * 100 : 0;

  return (
    <Box sx={{ width: '100%' }}>

      <LinearProgress

        variant="determinate"

        value={value}

        sx={{

          height: 4,

          borderRadius: 2,

          backgroundColor: 'rgba(124, 77, 255, 0.15)',

          '& .MuiLinearProgress-bar': {

            borderRadius: 2,

            background: 'linear-gradient(90deg, #7C4DFF 0%, #B47CFF 100%)',

          },

        }}

      />

    </Box>
  );
}