2019-05-28 10:18:07 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { getCategories, setCategories } from '@wordpress/blocks';
|
|
|
|
import { __ } from '@wordpress/i18n';
|
2022-02-01 16:54:38 +00:00
|
|
|
import { woo } from '@woocommerce/icons';
|
|
|
|
import { Icon } from '@wordpress/icons';
|
2019-05-28 10:18:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2019-06-10 16:47:14 +00:00
|
|
|
import '../css/editor.scss';
|
|
|
|
import '../css/style.scss';
|
2020-01-22 16:58:25 +00:00
|
|
|
import './filters/block-list-block';
|
|
|
|
import './filters/get-block-attributes';
|
2023-07-05 11:02:27 +00:00
|
|
|
import './base/components/notice-banner/style.scss';
|
2019-05-28 10:18:07 +00:00
|
|
|
|
|
|
|
setCategories( [
|
2020-07-22 12:20:54 +00:00
|
|
|
...getCategories().filter(
|
|
|
|
( { slug } ) =>
|
|
|
|
slug !== 'woocommerce' && slug !== 'woocommerce-product-elements'
|
|
|
|
),
|
2019-05-28 10:18:07 +00:00
|
|
|
{
|
|
|
|
slug: 'woocommerce',
|
|
|
|
title: __( 'WooCommerce', 'woo-gutenberg-products-block' ),
|
2022-02-01 16:54:38 +00:00
|
|
|
icon: <Icon icon={ woo } />,
|
2019-05-28 10:18:07 +00:00
|
|
|
},
|
2020-07-22 12:20:54 +00:00
|
|
|
{
|
|
|
|
slug: 'woocommerce-product-elements',
|
|
|
|
title: __(
|
|
|
|
'WooCommerce Product Elements',
|
|
|
|
'woo-gutenberg-products-block'
|
|
|
|
),
|
2021-12-10 14:32:44 +00:00
|
|
|
icon: (
|
|
|
|
<Icon
|
2022-02-01 16:54:38 +00:00
|
|
|
icon={ woo }
|
2021-12-10 14:32:44 +00:00
|
|
|
className="wc-block-editor-components-block-icon"
|
|
|
|
/>
|
|
|
|
),
|
2020-07-22 12:20:54 +00:00
|
|
|
},
|
2019-05-28 10:18:07 +00:00
|
|
|
] );
|