/** * 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', 'woo-gutenberg-products-block' ) } { __( 'Downloads remaining', 'woo-gutenberg-products-block' ) } { __( 'Expires', 'woo-gutenberg-products-block' ) } { __( 'Download', 'woo-gutenberg-products-block' ) }
{ _x( 'Test Product', 'sample product name', 'woo-gutenberg-products-block' ) } { _x( '∞', 'infinite downloads remaining', 'woo-gutenberg-products-block' ) } { _x( 'Never', 'download expires', 'woo-gutenberg-products-block' ) } { _x( 'Test Download', 'sample download name', 'woo-gutenberg-products-block' ) }
); }; export default Edit;