Next.js template
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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;