/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { withFeedbackPrompt } from '@woocommerce/block-hocs'; import { previewCart, previewShippingRates, } from '@woocommerce/resource-previews'; import { InspectorControls } from '@wordpress/block-editor'; import { PanelBody, ToggleControl, CheckboxControl, Notice, } from '@wordpress/components'; import BlockErrorBoundary from '@woocommerce/base-components/block-error-boundary'; import { PRIVACY_URL, TERMS_URL, SHIPPING_METHODS_EXIST, } from '@woocommerce/block-settings'; import { getAdminLink } from '@woocommerce/settings'; import { __experimentalCreateInterpolateElement } from 'wordpress-element'; /** * Internal dependencies */ import Block from './block.js'; import './editor.scss'; const CheckoutEditor = ( { attributes, setAttributes } ) => { const { className, useShippingAsBilling, showCompanyField, showAddress2Field, showPhoneField, requireCompanyField, requirePhoneField, showPolicyLinks, } = attributes; return (
{ __( 'Choose whether your checkout form requires extra information from customers.', 'woo-gutenberg-products-block' ) }
{ __( 'Reduce the number of fields required to checkout.', 'woo-gutenberg-products-block' ) }
{ __( 'Choose additional content to display on checkout.', 'woo-gutenberg-products-block' ) }