BlockPolicy.jsx 793 B

123456789101112131415161718192021222324252627
  1. import {Box, Typography} from "@mui/material";
  2. export const BlockPolicy = ({title, children, breakpoint}) => {
  3. return (
  4. <Box marginTop='30px'>
  5. <Typography
  6. variant={breakpoint ? 'h6':'h5'}
  7. fontWeight='500'
  8. letterSpacing='5px'
  9. textAlign='left'
  10. marginBottom={breakpoint ? '10px':'25px'}
  11. >
  12. {title || 'title'}
  13. </Typography>
  14. <Typography
  15. variant='body1'
  16. fontWeight='300'
  17. marginBottom='40px'
  18. color='#616161'
  19. textAlign='left'
  20. lineHeight='1.7em'
  21. >
  22. {children || 'children'}
  23. </Typography>
  24. </Box>
  25. )
  26. }