woocommerce/plugins/woocommerce-blocks/assets/js/blocks/cart-checkout/cart/attributes.js

30 lines
516 B
JavaScript

/**
* External dependencies
*/
import {
IS_SHIPPING_CALCULATOR_ENABLED,
HAS_DARK_EDITOR_STYLE_SUPPORT,
} from '@woocommerce/block-settings';
const blockAttributes = {
isPreview: {
type: 'boolean',
default: false,
save: false,
},
isShippingCalculatorEnabled: {
type: 'boolean',
default: IS_SHIPPING_CALCULATOR_ENABLED,
},
checkoutPageId: {
type: 'number',
default: 0,
},
hasDarkControls: {
type: 'boolean',
default: HAS_DARK_EDITOR_STYLE_SUPPORT,
},
};
export default blockAttributes;