2019-05-28 10:18:07 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { getCategories, setCategories } from '@wordpress/blocks';
|
|
|
|
import { __ } from '@wordpress/i18n';
|
2020-07-22 12:20:54 +00:00
|
|
|
import { woo, atom, Icon } from '@woocommerce/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';
|
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' ),
|
2020-06-26 14:22:41 +00:00
|
|
|
icon: <Icon srcElement={ 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-10-20 09:30:16 +00:00
|
|
|
icon: <Icon srcElement={ atom } style={ { fill: '#7f54b3' } } />,
|
2020-07-22 12:20:54 +00:00
|
|
|
},
|
2019-05-28 10:18:07 +00:00
|
|
|
] );
|