19 lines
458 B
TypeScript
19 lines
458 B
TypeScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { useStoreCart } from '@woocommerce/base-context/hooks';
|
|
import { CartLineItemsTable } from '@woocommerce/base-components/cart-checkout';
|
|
|
|
const Block = ( { className }: { className: string } ): JSX.Element => {
|
|
const { cartItems, cartIsLoading } = useStoreCart();
|
|
return (
|
|
<CartLineItemsTable
|
|
className={ className }
|
|
lineItems={ cartItems }
|
|
isLoading={ cartIsLoading }
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default Block;
|