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

25 lines
439 B
JavaScript
Raw Normal View History

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