TotalPriceLine.jsx 962 B

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