/** * External dependencies */ import classnames from 'classnames'; import { __ } from '@wordpress/i18n'; import { DISPLAY_CART_PRICES_INCLUDING_TAX } from '@woocommerce/block-settings'; import type { Currency } from '@woocommerce/price-format'; import type { CartFeeItem } from '@woocommerce/type-defs/cart'; import type { ReactElement } from 'react'; /** * Internal dependencies */ import TotalsItem from '../item'; interface TotalsFeesProps { currency: Currency; cartFees: CartFeeItem[]; className?: string; } const TotalsFees = ( { currency, cartFees, className, }: TotalsFeesProps ): ReactElement | null => { return ( <> { cartFees.map( ( { id, name, totals } ) => { const feesValue = parseInt( totals.total, 10 ); if ( ! feesValue ) { return null; } const feesTaxValue = parseInt( totals.total_tax, 10 ); return ( ); } ) } ); }; export default TotalsFees;