diff --git a/assets/js/blocks/order-confirmation/billing-address/attributes.ts b/assets/js/blocks/order-confirmation/billing-address/attributes.ts new file mode 100644 index 00000000000..519a00b8ce5 --- /dev/null +++ b/assets/js/blocks/order-confirmation/billing-address/attributes.ts @@ -0,0 +1,17 @@ +/** + * Internal dependencies + */ +import { DEFAULT_TITLE } from './constants'; + +const attributes = ( { + defaultTitle = DEFAULT_TITLE, +}: { + defaultTitle: string; +} ): Record< string, Record< string, unknown > > => ( { + title: { + type: 'string', + default: defaultTitle, + }, +} ); + +export default attributes; diff --git a/assets/js/blocks/order-confirmation/billing-address/constants.ts b/assets/js/blocks/order-confirmation/billing-address/constants.ts new file mode 100644 index 00000000000..af0b31c8797 --- /dev/null +++ b/assets/js/blocks/order-confirmation/billing-address/constants.ts @@ -0,0 +1,9 @@ +/** + * External dependencies + */ +import { __ } from '@wordpress/i18n'; + +export const DEFAULT_TITLE = __( + 'Billing address', + 'woo-gutenberg-products-block' +);