import * as React from 'react'; import Divider from '@mui/material/Divider'; import Grid from '@mui/material/Grid'; import List from '@mui/material/List'; import ListItem from '@mui/material/ListItem'; import ListItemText from '@mui/material/ListItemText'; import Stack from '@mui/material/Stack'; import Typography from '@mui/material/Typography'; const addresses = ['1 MUI Drive', 'Reactville', 'Anytown', '99999', 'USA']; const payments = [ { name: 'Card type:', detail: 'Visa' }, { name: 'Card holder:', detail: 'Mr. John Smith' }, { name: 'Card number:', detail: 'xxxx-xxxx-xxxx-1234' }, { name: 'Expiry date:', detail: '04/2024' }, ]; export default function Review() { return ( $134.98 $9.99 $144.97 } spacing={2} sx={{ my: 2 }} >
Shipment details John Smith {addresses.join(', ')}
Payment details {payments.map((payment) => ( {payment.name} {payment.detail} ))}
); }