Next.js template
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

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;