Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3556 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3556 Rev 3719
Línea 1... Línea 1...
1
import React from 'react';
1
import React from 'react';
2
import { LinearProgress } from '@mui/material';
2
import { LinearProgress } from '@mui/material';
3
 
3
 
4
import { Card, CardContent, CardHeader, CardMedia } from '@shared/components';
4
import { Card, CardContent, CardHeader, CardMedia } from '@shared/components';
5
 
5
 
6
export function TopicCard({ topic: { name, image, progress } }) {
6
export function TopicCard({ topic: { name, image, progress } }) {
7
  return (
7
  return (
8
    <Card>
8
    <Card>
9
      <CardHeader title={name} />
9
      <CardHeader title={name} />
10
      <CardMedia src={image} />
10
      <CardMedia src={image} />
11
 
11
 
12
      <CardContent>
12
      <CardContent>
13
        <LinearProgress variant='determinate' value={progress} />
13
        <LinearProgress variant='determinate' value={progress} />
14
 
14
 
15
        <span>{`${progress}%`}</span>
15
        <span>{`${progress}%`}</span>
16
      </CardContent>
16
      </CardContent>
17
    </Card>
17
    </Card>
18
  );
18
  );
19
}
19
}