const SummaryPage = () => {
const lineItems = [
{ name: 'Pizza Quattro Stagioni', qty: 1, price: 12.50, color: '#a16207', emoji: '๐' },
{ name: 'Pizza Margherita', qty: 2, price: 10.00, color: '#dc2626', emoji: '๐
' },
];
const total = lineItems.reduce((s, i) => s + i.qty * i.price, 0);
const totalQty = lineItems.reduce((s, i) => s + i.qty, 0);
return (
Besteloverzicht
Klopt alles? Druk op betalen om je plekje vast te zetten.
{/* Customer card */}
Jouw gegevens
NaamSenne Visser
Telefoon06 16219191
E-mailsennevisser@outlook.com
{/* Items card */}
Bestelling
{lineItems.map((item, i) => (
{item.emoji}
{item.qty}ร {item.name}
โฌ{(item.qty * item.price).toFixed(2)}
))}
Totaal
โฌ{total.toFixed(2)}
{/* Pickup time card with confirmed time emphasis */}
๐
Ophaaltijd
Geschatte tijd
18:55
indicatief
โ Je ophaaltijd is pas definitief na het afrekenen. Als het gekozen tijdslot ondertussen vol raakt, kan je definitieve ophaaltijd iets later worden.
{/* CTAs */}
);
};
window.SummaryPage = SummaryPage;