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