2019-08-23 14:48:48 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
import { Placeholder } from '@wordpress/components';
|
2020-01-31 18:20:33 +00:00
|
|
|
import { Icon, discussion } from '@woocommerce/icons';
|
2019-08-23 14:48:48 +00:00
|
|
|
|
|
|
|
const NoCategoryReviewsPlaceholder = () => {
|
|
|
|
return (
|
|
|
|
<Placeholder
|
|
|
|
className="wc-block-all-reviews"
|
2020-01-31 18:20:33 +00:00
|
|
|
icon={
|
|
|
|
<Icon
|
|
|
|
srcElement={ discussion }
|
|
|
|
className="block-editor-block-icon"
|
|
|
|
/>
|
|
|
|
}
|
2019-08-23 14:48:48 +00:00
|
|
|
label={ __( 'All Reviews', 'woo-gutenberg-products-block' ) }
|
|
|
|
>
|
2019-09-05 15:09:31 +00:00
|
|
|
{ __(
|
|
|
|
'This block shows a list of all product reviews. Your store does not have any reviews yet, but they will show up here when it does.',
|
|
|
|
'woo-gutenberg-products-block'
|
|
|
|
) }
|
2019-08-23 14:48:48 +00:00
|
|
|
</Placeholder>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default NoCategoryReviewsPlaceholder;
|