/**
* 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 = {
} as React.CSSProperties;
return (
<div { ...blockProps }>
<Disabled>
<table
style={ borderStyles }
cellSpacing="0"
className="wc-block-order-confirmation-downloads__table"
>
<thead>
<tr>
<th className="download-product">
<span className="nobr">
{ __( 'Product', 'woocommerce' ) }
</span>
</th>
<th className="download-remaining">
{ __(
'Downloads remaining',
'woocommerce'
) }
<th className="download-expires">
{ __( 'Expires', 'woocommerce' ) }
<th className="download-file">
{ __( 'Download', 'woocommerce' ) }
</tr>
</thead>
<tbody>
<td
className="download-product"
data-title="Product"
<a href="https://example.com">
{ _x(
'Test Product',
'sample product name',
</a>
</td>
className="download-remaining"
data-title="Downloads remaining"
'∞',
'infinite downloads remaining',
className="download-expires"
data-title="Expires"
'Never',
'download expires',
<td className="download-file" data-title="Download">
<a
href="https://example.com"
className="woocommerce-MyAccount-downloads-file button alt"
'Test Download',
'sample download name',
</tbody>
</table>
</Disabled>
</div>
);
};
export default Edit;