import { InformationCircleIcon } from '@heroicons/react/24/outline'; import Price from 'components/price'; import Badge from 'components/ui/badge'; import Heading from 'components/ui/heading'; import Label from 'components/ui/label'; import Text from 'components/ui/text'; import { Order } from 'lib/shopify/types'; import Image from 'next/image'; export default function OrderSummary({ order }: { order: Order }) { return (
Order Summary
{order.lineItems.map((lineItem, index) => (
{lineItem.image ? ( {lineItem.image.altText} ) : (
)}
{lineItem.title}
))}
Subtotal
Shipping {order.shippingMethod?.price.amount !== '0.0' ? ( ) : ( Free )}
Total
); }