ItemTabsAccountDefault.jsx 958 B

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