/** * External dependencies */ import { useBlockProps } from '@wordpress/block-editor'; import { Disabled } from '@wordpress/components'; import { __, _x } from '@wordpress/i18n'; /** * Internal dependencies */ import './style.scss'; const Edit = (): JSX.Element => { const blockProps = useBlockProps( { className: 'wc-block-order-confirmation-downloads', } ); const { borderBottomColor, borderLeftColor, borderRightColor, borderTopColor, borderWidth, } = blockProps.style; const borderStyles = { borderBottomColor, borderLeftColor, borderRightColor, borderTopColor, borderWidth, } as React.CSSProperties; return (
{ __( 'Product', 'woocommerce' ) } { __( 'Downloads remaining', 'woocommerce' ) } { __( 'Expires', 'woocommerce' ) } { __( 'Download', 'woocommerce' ) }
{ _x( 'Test Product', 'sample product name', 'woocommerce' ) } { _x( '∞', 'infinite downloads remaining', 'woocommerce' ) } { _x( 'Never', 'download expires', 'woocommerce' ) } { _x( 'Test Download', 'sample download name', 'woocommerce' ) }
); }; export default Edit;