/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { Card, CardBody, PanelBody, PanelRow } from 'wordpress-components'; import { Icon, cart } from '@woocommerce/icons'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import CheckoutOrderSummaryItem from './order-summary-item.js'; const CheckoutOrderSummary = ( { cartItems = [] } ) => { return ( { __( 'Order summary', 'woo-gutenberg-products-block' ) } } initialOpen={ true } > { cartItems.map( ( cartItem ) => { return ( ); } ) } ); }; CheckoutOrderSummary.propTypes = { cartItems: PropTypes.arrayOf( PropTypes.shape( { key: PropTypes.string.isRequired } ) ), }; export default CheckoutOrderSummary;