| 12345678910111213141516171819 |
- import { Divider, Paper, Typography } from '@mui/material';
-
- const DataCard = ({ data, t }) => {
- return (
- <Paper sx={{ p: 3, height: '100%' }} elevation={3}>
- <Typography sx={{ fontWeight: 600 }}>{t('Name')}</Typography>
- <Typography display="inline"> {data.name}</Typography>
- <Divider />
- <Typography sx={{ fontWeight: 600 }}>{t('Age')}</Typography>
- <Typography display="inline"> {data.age}</Typography>
- <Divider />
- <Typography sx={{ fontWeight: 600 }}>{t('Gender')}</Typography>
- <Typography display="inline"> {data.gender}</Typography>
- <Divider />
- </Paper>
- );
- };
-
- export default DataCard;
|