Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
wp-content-20241001222009
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
assets
/
js
/
blocks
/
cart
/
inner-blocks
/
cart-order-summary-fee
:
block.tsx
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { TotalsFees, TotalsWrapper } from '@woocommerce/blocks-checkout'; import { getCurrencyFromPriceResponse } from '@woocommerce/price-format'; import { useStoreCart } from '@woocommerce/base-context/hooks'; const Block = ( { className }: { className: string } ): JSX.Element => { const { cartFees, cartTotals } = useStoreCart(); const totalsCurrency = getCurrencyFromPriceResponse( cartTotals ); return ( <TotalsWrapper className={ className }> <TotalsFees currency={ totalsCurrency } cartFees={ cartFees } /> </TotalsWrapper> ); }; export default Block;