/** * External dependencies */ import { registerPaymentMethod } from '@woocommerce/blocks-registry'; import { __ } from '@wordpress/i18n'; import { getPaymentMethodData } from '@woocommerce/settings'; import { decodeEntities } from '@wordpress/html-entities'; import { sanitizeHTML } from '@woocommerce/utils'; import { RawHTML } from '@wordpress/element'; /** * Internal dependencies */ import { PAYMENT_METHOD_NAME } from './constants'; const settings = getPaymentMethodData( 'cheque', {} ); const defaultLabel = __( 'Check payment', 'woocommerce' ); const label = decodeEntities( settings?.title || '' ) || defaultLabel; /** * Content component */ const Content = () => { return { sanitizeHTML( settings.description || '' ) }; }; /** * Label component * * @param {*} props Props from payment API. */ const Label = ( props ) => { const { PaymentMethodLabel } = props.components; return ; }; /** * Cheque payment method config object. */ const offlineChequePaymentMethod = { name: PAYMENT_METHOD_NAME, label: