UNPKG

@open-tender/ui

Version:

A component library for use with the Open Tender web app

8 lines (7 loc) 335 B
import React from 'react'; import { makeProps } from '../utils'; import View from './View'; const CheckoutCart = ({ config, cart, renderCartItem }) => { return (React.createElement(View, Object.assign({}, makeProps(config, 'checkoutCart')), cart.map((item, index) => renderCartItem(item, index)))); }; export default CheckoutCart;