import React, { useState } from 'react';
import {
Box,
Button,
Typography,
Link,
} from '@mui/material';
import Table from '@mui/material/Table';
import TableBody from '@mui/material/TableBody';
import TableCell from '@mui/material/TableCell';
import TableContainer from '@mui/material/TableContainer';
import TableHead from '@mui/material/TableHead';
import TableRow from '@mui/material/TableRow';
import Grid from '@mui/material/Grid2';
import ProductSuggestion from '../../components/ProductSuggestion';
import FiberManualRecordIcon from '@mui/icons-material/FiberManualRecord';
const ConfirmOrder = () => {
const rows = [
{
img_src: 'https://via.placeholder.com/300',
name: 'MELUR',
description: 'Atma Sari New Raya Collection 2024',
colour: 'black',
quantity: 1,
price: 335.50
}
];
const [shippingMethod, setShippingMethod] = useState('COD');
const handleSubmit = (e) => {
e.preventDefault();
// Handle form submission logic
console.log('Form submitted');
};
const FieldContainer = ({ label, children }) => (
{label}
{children}
);
return (
THANK YOU MR. OLSONThank you for your order. Your order number is 347982. A confirmation email has also been sent to the email address provided.
{/* Product TableList */}
ORDER CONFIRMATION
Item
{/* This is just for table offset */}
ColourQuantityUnit PriceShippingTaxDuties
{rows.map((row) => (
{row.name}{row.description}{row.colour}{row.quantity}{`RM ${parseFloat(row.price).toFixed(2)}`}{`RM ${parseFloat(row.price).toFixed(2)}`}{`RM ${parseFloat(row.price).toFixed(2)}`}{`RM ${parseFloat(row.price).toFixed(2)}`}
))}
ADD A GIFT CARD OR PROMOTION CODE
Total {`RM ${parseFloat(250).toFixed(2)}`}PAYMENT METHODCredit Card Number
{[...Array(12)].map((_, index) => (
))}
0046SHIPPING DETAILSYour will receive your order in 3-4 business days
THE ESSENTIALS BASED ON YOUR LAST PURCHASE
NEED HELP? CALL US: +44 (0)10 2345 6789 | EMAIL CUSTOMER CARE | SHIPPING INFORMATION | RETURNS & EXCHANGES
);
};
export default ConfirmOrder;