2024-01-16 13:17:28 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { useBlockProps } from '@wordpress/block-editor';
|
|
|
|
import {
|
2024-04-23 14:47:32 +00:00
|
|
|
ORDER_FORM_FIELDS,
|
2024-01-16 13:17:28 +00:00
|
|
|
CONTACT_FORM_FIELDS,
|
|
|
|
} from '@woocommerce/block-settings';
|
|
|
|
import { AdditionalFieldsPlaceholder } from '@woocommerce/base-components/cart-checkout';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import './style.scss';
|
|
|
|
|
|
|
|
const Edit = (): JSX.Element => {
|
|
|
|
const blockProps = useBlockProps( {
|
|
|
|
className: 'wc-block-order-confirmation-additional-fields',
|
|
|
|
} );
|
|
|
|
|
|
|
|
const additionalFields = {
|
2024-04-23 14:47:32 +00:00
|
|
|
...ORDER_FORM_FIELDS,
|
2024-01-16 13:17:28 +00:00
|
|
|
...CONTACT_FORM_FIELDS,
|
|
|
|
};
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div { ...blockProps }>
|
|
|
|
<AdditionalFieldsPlaceholder
|
|
|
|
additionalFields={ additionalFields }
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Edit;
|