/** * External dependencies */ import { useBlockProps } from '@wordpress/block-editor'; import { Disabled } from '@wordpress/components'; import { __, _x } from '@wordpress/i18n'; import { formatPrice } from '@woocommerce/price-format'; /** * Internal dependencies */ import './style.scss'; const Edit = (): JSX.Element => { const blockProps = useBlockProps( { className: 'wc-block-order-confirmation-totals', } ); const { borderBottomColor, borderLeftColor, borderRightColor, borderTopColor, borderWidth, } = blockProps.style; const borderStyles = { borderBottomColor, borderLeftColor, borderRightColor, borderTopColor, borderWidth, } as React.CSSProperties; return (
{ __( 'Product', 'woocommerce' ) } | { __( 'Total', 'woocommerce' ) } |
---|---|
{ _x( 'Test Product', 'sample product name', 'woocommerce' ) } × 2 | { formatPrice( 2000 ) } |
{ _x( 'Test Product', 'sample product name', 'woocommerce' ) } × 2 | { formatPrice( 2000 ) } |
{ __( 'Total', 'woocommerce' ) } | { formatPrice( 4000 ) } |