BlockPolicy.jsx 820 B

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