BlockQualityItem.jsx 820 B

123456789101112131415161718192021222324252627
  1. import {Box, Grid, Typography} from "@mui/material";
  2. import Title from "../../components/Title";
  3. export const BlockQualityItem = ({Icon, title, content}) => {
  4. return (
  5. <Grid sx={{padding: '0 20px'}} item xs={12} md={4}>
  6. <Box
  7. display='flex'
  8. justifyContent='center'
  9. marginBottom='20px'
  10. >
  11. {Icon && <Icon/>}
  12. </Box>
  13. <Title subtitle={title || 'default title'} />
  14. <Typography
  15. variant='body1'
  16. fontWeight='300'
  17. lineHeight='1.8em'
  18. color='#616161'
  19. marginBottom='10px'
  20. textAlign='center'
  21. >
  22. {content || 'default content'}
  23. </Typography>
  24. </Grid>
  25. )
  26. }