2021-09-21 10:47:20 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { useStoreCart } from '@woocommerce/base-context/hooks';
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2021-10-18 16:12:36 +00:00
|
|
|
import CartLineItemsTable from '../../cart-line-items-table';
|
2021-09-21 10:47:20 +00:00
|
|
|
|
2021-10-25 15:31:22 +00:00
|
|
|
const Block = ( { className }: { className: string } ): JSX.Element => {
|
2021-09-21 10:47:20 +00:00
|
|
|
const { cartItems, cartIsLoading } = useStoreCart();
|
|
|
|
return (
|
|
|
|
<CartLineItemsTable
|
2021-10-25 15:31:22 +00:00
|
|
|
className={ className }
|
2021-09-21 10:47:20 +00:00
|
|
|
lineItems={ cartItems }
|
|
|
|
isLoading={ cartIsLoading }
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Block;
|