/** * WordPress dependencies */ import { _x } from '@safe-wordpress/i18n'; /** * External dependencies */ import clsx from 'clsx'; import type { Invoice as InvoiceProps } from '@nab/types'; /** * Internal dependencies */ import './style.scss'; export const Invoice = ( { invoiceUrl, reference, chargeDate, isRefunded, subtotalDisplay, }: InvoiceProps ): JSX.Element => ( { reference } { chargeDate } { isRefunded && ( { _x( '(Refunded)', 'text (invoice)', 'nelio-ab-testing' ) } ) } { subtotalDisplay } );