woocommerce/plugins/woocommerce-blocks/assets/js/blocks/cart/inner-blocks/cart-line-items-block/block.tsx

22 lines
472 B
TypeScript

/**
* External dependencies
*/
import { useStoreCart } from '@woocommerce/base-context/hooks';
/**
* Internal dependencies
*/
import CartLineItemsTable from '../../cart-line-items-table';
const Block = ( { className }: { className: string } ): JSX.Element => {
const { cartItems, cartIsLoading } = useStoreCart();
return (
<CartLineItemsTable
className={ className }
lineItems={ cartItems }
isLoading={ cartIsLoading }
/>
);
};
export default Block;