Next.js template
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

DataCard.jsx 654B

12345678910111213141516171819
  1. import { Divider, Paper, Typography } from '@mui/material';
  2. const DataCard = ({ data, t }) => {
  3. return (
  4. <Paper sx={{ p: 3, height: '100%' }} elevation={3}>
  5. <Typography sx={{ fontWeight: 600 }}>{t('Name')}</Typography>
  6. <Typography display="inline"> {data.name}</Typography>
  7. <Divider />
  8. <Typography sx={{ fontWeight: 600 }}>{t('Age')}</Typography>
  9. <Typography display="inline"> {data.age}</Typography>
  10. <Divider />
  11. <Typography sx={{ fontWeight: 600 }}>{t('Gender')}</Typography>
  12. <Typography display="inline"> {data.gender}</Typography>
  13. <Divider />
  14. </Paper>
  15. );
  16. };
  17. export default DataCard;