import { Button, Divider, Paper, Typography } from '@mui/material'; import { Box } from '@mui/system'; import Image from 'next/image'; import { useRouter } from 'next/router'; import { setCookie } from 'nookies'; import PropType from 'prop-types'; const OrderSummaryCard = ({ data }) => { const router = useRouter(); return ( Order Summary Items total:${data.totalPrice} Shipping Costs: FREE Total: ${data.totalPrice} Once the checkout process begins you will have an hour to complete your checkout otherwise you will be returned back to the cart to start over. ); }; OrderSummaryCard.propTypes = { data: PropType.shape({ totalPrice: PropType.number, totalQuantity: PropType.number, }), }; export default OrderSummaryCard;