Rev 3550 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import React from 'react';
import { Box, LinearProgress, Typography } from '@mui/material';
import { Card, CardContent, CardHeader, CardMedia } from '@shared/components';
export function CapsuleCard({ capsule: { name, image, progress } }) {
return (
<Card>
<CardHeader title={name} />
<CardMedia src={image} />
<CardContent>
<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5 }}>
<LinearProgress variant='determinate' value={progress} />
<Typography variant='caption'>{`${progress}%`}</Typography>
</Box>
</CardContent>
</Card>
);
}