TotalPriceLine.jsx 935 B

123456789101112131415161718192021222324252627282930313233
  1. import {Grid, Typography} from "@mui/material";
  2. export const TotalPriceLine = ({title, subtitle, sizeSubtitle='body2'}) => {
  3. return (
  4. <Grid
  5. container
  6. display='flex'
  7. flexDirection='row'
  8. justifyContent='space-between'
  9. alignItems='center'
  10. padding='20px'
  11. >
  12. <Grid item xs={6}>
  13. <Typography
  14. variant='body2'
  15. color='#616161'
  16. textAlign='left'
  17. >
  18. { title || 'title' }
  19. </Typography>
  20. </Grid>
  21. <Grid item xs={6}>
  22. <Typography
  23. variant={sizeSubtitle}
  24. color='#000'
  25. textAlign='right'
  26. >
  27. { subtitle || 'subtitle' }
  28. </Typography>
  29. </Grid>
  30. </Grid>
  31. )
  32. }