UNPKG

@shopgate/engage

Version:
4 lines 1.87 kB
import React from'react';import{hot}from'react-hot-loader/root';import{i18n}from'@shopgate/engage/core';import{container,headline,summary,total,grandTotal}from"./CartSummaryWide.style";import PaymentBarSubTotal from"../PaymentBar/PaymentBarSubTotal";import PaymentBarGrandTotal from"../PaymentBar/PaymentBarGrandTotal";import PaymentBarShippingCost from"../PaymentBar/PaymentBarShippingCost";import PaymentBarDiscounts from"../PaymentBar/PaymentBarDiscounts";import PaymentBarTax from"../PaymentBar/PaymentBarTax";import PaymentBarAppliedPromotions from"../PaymentBar/PaymentBarAppliedPromotions";import PaymentBarPromotionCoupons from"../PaymentBar/PaymentBarPromotionCoupons";import CartSummaryWideCheckoutButton from"./CartSummaryWideCheckoutButton";import CartSummaryWideFooter from"./CartSummaryWideFooter";/** * @param {Object} The component props * @returns {JSX} */var CartSummaryWide=function CartSummaryWide(){return React.createElement("div",{className:container},React.createElement("h2",{className:headline},i18n.text('checkout.summary.headline')),React.createElement("div",{className:summary},React.createElement(PaymentBarSubTotal,{showSeparator:false,label:"cart.subtotal",className:total}),React.createElement(PaymentBarAppliedPromotions,{showSeparator:false,className:total}),React.createElement(PaymentBarPromotionCoupons,{showSeparator:false,className:total}),React.createElement(PaymentBarDiscounts,{showSeparator:false,className:total}),React.createElement(PaymentBarShippingCost,{showSeparator:false,className:total}),React.createElement(PaymentBarTax,{showSeparator:false,className:total}),React.createElement(PaymentBarGrandTotal,{showSeparator:false,label:"cart.grand_total",className:grandTotal})),React.createElement(CartSummaryWideCheckoutButton,null),React.createElement(CartSummaryWideFooter,null));};export default hot(CartSummaryWide);