woocommerce/plugins/woocommerce-blocks/assets/js/previews/reviews.js

51 lines
1.4 KiB
JavaScript
Raw Normal View History

/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { blocksConfig } from '@woocommerce/block-settings';
export const previewReviews = [
{
id: 1,
date_created: '2019-07-15T17:05:04',
2023-12-12 23:05:20 +00:00
formatted_date_created: __( 'July 15, 2019', 'woocommerce' ),
date_created_gmt: '2019-07-15T15:05:04',
product_id: 0,
2023-12-09 13:44:54 +00:00
product_name: __( 'WordPress Pennant', 'woocommerce' ),
product_permalink: '#',
/* translators: An example person name used for the block previews. */
2023-12-09 13:44:54 +00:00
reviewer: __( 'Alice', 'woocommerce' ),
review: `<p>${ __(
"I bought this product last week and I'm very happy with it.",
2023-12-09 13:44:54 +00:00
'woocommerce'
) }</p>\n`,
reviewer_avatar_urls: {
48: blocksConfig.defaultAvatar,
96: blocksConfig.defaultAvatar,
},
rating: 5,
verified: true,
},
{
id: 2,
date_created: '2019-07-12T12:39:39',
2023-12-12 23:05:20 +00:00
formatted_date_created: __( 'July 12, 2019', 'woocommerce' ),
date_created_gmt: '2019-07-12T10:39:39',
product_id: 0,
2023-12-09 13:44:54 +00:00
product_name: __( 'WordPress Pennant', 'woocommerce' ),
product_permalink: '#',
/* translators: An example person name used for the block previews. */
2023-12-09 13:44:54 +00:00
reviewer: __( 'Bob', 'woocommerce' ),
review: `<p>${ __(
'This product is awesome, I love it!',
2023-12-09 13:44:54 +00:00
'woocommerce'
) }</p>\n`,
reviewer_avatar_urls: {
48: blocksConfig.defaultAvatar,
96: blocksConfig.defaultAvatar,
},
rating: null,
verified: false,
},
];