/**
* External dependencies
*/
import { getSetting } from '@woocommerce/settings';
const blockAttributes = {
isPreview: {
type: 'boolean',
default: false,
save: false,
},
showCompanyField: {
requireCompanyField: {
allowCreateAccount: {
showApartmentField: {
default: true,
showPhoneField: {
requirePhoneField: {
showOrderNotes: {
showPolicyLinks: {
showReturnToCart: {
cartPageId: {
type: 'number',
default: 0,
hasDarkControls: {
default: getSetting( 'hasDarkEditorStyleSupport', false ),
showRateAfterTaxName: {
default: getSetting( 'displayCartPricesIncludingTax', false ),
};
export default blockAttributes;