Handles showing the user's cart items and starting the checkout flow, the user can also remove items from the cart.
(cartItems) ⇒ void
Callback function called when the user clicks the submit button.
Displays the relevant errors or success messages.
A button that reduces the quantity of a certain cart item by 1, and removes it in case the quantity is equal to 1.
the id of the item to remove.
A text that shows the total price of the cart items. shows nothing if the cart is showing any alerts.
A button component that starts the checkout flow.
The title displayed inside the button