import React from 'react'; import './Summary.scss'; import { OrderSummaryItems } from '@components/frontStore/checkout/OrderSummaryItems.js'; import { OrderTotalSummary } from '@components/frontStore/checkout/OrderTotalSummary.js'; import { Order } from '@components/frontStore/customer/CustomerContext.jsx'; import { useAppState } from '@components/common/context/app.js'; interface SummaryProps { order: Order; } export default function Summary({ order }: SummaryProps) { const { config: { tax: { priceIncludingTax } } } = useAppState(); return (
); } export const layout = { areaId: 'checkoutSuccessPageRight', sortOrder: 10 }; export const query = ` query Query { order (uuid: getContextValue('orderId')) { orderNumber discountAmount { text } coupon shippingMethodName shippingFeeInclTax { text } shippingFeeExclTax { text } totalTaxAmount { text } subTotal { text } subTotalInclTax { text } grandTotal { text } items { uuid productName thumbnail productSku qty productUrl productPrice { text } productPriceInclTax { text } variantOptions { attributeCode attributeName attributeId optionId optionText } lineTotalInclTax { text } lineTotal { text } } } } `;