ItemTabsAccountDefault.jsx 985 B

1234567891011121314151617181920212223242526272829303132333435
  1. import React from 'react';
  2. import {Box, Grid, Typography, useMediaQuery} from "@mui/material";
  3. export const ItemTabsAccountDefault = ({title, content}) => {
  4. const matches = useMediaQuery('(max-width:899px)')
  5. return(
  6. <Grid
  7. item xs={6} sm={4}
  8. marginBottom='20px'
  9. >
  10. <Typography
  11. color='#616161'
  12. fontWeight='300'
  13. marginBottom='5px'
  14. fontSize={matches ? '13px' : '16px'}
  15. >
  16. {title || 'title'}
  17. </Typography>
  18. {typeof content === "string" ?
  19. <Typography
  20. color='#000'
  21. fontWeight='400'
  22. fontSize={matches ? '16px' : '22px'}
  23. >
  24. {content || 'content'}
  25. </Typography>
  26. :
  27. <Box>
  28. {content}
  29. </Box>
  30. }
  31. </Grid>
  32. )
  33. }