/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { withFeedbackPrompt } from '@woocommerce/block-hocs'; import { previewShippingRates } from '@woocommerce/resource-previews'; import { SHIPPING_METHODS_EXIST } from '@woocommerce/block-settings'; import { InspectorControls } from '@wordpress/block-editor'; import { PanelBody, ToggleControl, CheckboxControl, } from '@wordpress/components'; import BlockErrorBoundary from '@woocommerce/base-components/block-error-boundary'; /** * Internal dependencies */ import Block from './block.js'; import './editor.scss'; const CheckoutEditor = ( { attributes, setAttributes } ) => { const { className, useShippingAsBilling, showCompanyField, showAddress2Field, showPhoneField, requireCompanyField, requirePhoneField, } = 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' ) }