UNPKG

@shopgate/engage

Version:
5 lines 822 B
import{hot}from'react-hot-loader/root';import*as React from'react';import CartItemGroupReservation from"./CartItemGroupReservation";/** * Renders the product group. * @param {Object} props The component props. * @returns {JSX.Element} */function CartItemGroup(props){var multiLineReservation=props.multiLineReservation,fulfillmentLocationId=props.fulfillmentLocationId,children=props.children,fulfillmentMethod=props.fulfillmentMethod;if(!multiLineReservation){return children;}return React.createElement(React.Fragment,null,!!fulfillmentLocationId&&React.createElement(CartItemGroupReservation,{locationId:fulfillmentLocationId,fulfillmentMethod:fulfillmentMethod}),children);}CartItemGroup.defaultProps={fulfillmentLocationId:null,multiLineReservation:false,fulfillmentMethod:null};export default hot(CartItemGroup);