/** * External dependencies */ import { __ } from '@wordpress/i18n'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import CartLineItemRow from './cart-line-item-row'; const CartLineItemsTable = ( { lineItems = [] } ) => { const products = lineItems.map( ( lineItem ) => ( ) ); return ( { products }
{ __( 'Product', 'woo-gutenberg-products-block' ) } { __( 'Quantity', 'woo-gutenberg-products-block' ) } { __( 'Total', 'woo-gutenberg-products-block' ) }
); }; CartLineItemsTable.propTypes = { lineItems: PropTypes.arrayOf( PropTypes.shape( { key: PropTypes.string.isRequired, } ) ), }; export default CartLineItemsTable;