wp_back/wp-content/plugins/visual-portfolio/gutenberg/index.js

22 lines
643 B
JavaScript
Raw Normal View History

2024-05-20 15:37:46 +03:00
import './block';
import './block-saved';
import './extensions/block-id';
import './extensions/classic-icon-with-overlay';
import './extensions/items-count-all';
import './extensions/link-rel';
import './extensions/stretch-for-saved-only';
import './store';
import './components/dropdown';
import { registerBlockCollection } from '@wordpress/blocks';
import { ReactComponent as ElementIcon } from '../assets/admin/images/icon-gutenberg.svg';
const { plugin_name: pluginName } = window.VPGutenbergVariables;
// Collection.
registerBlockCollection('visual-portfolio', {
title: pluginName,
icon: <ElementIcon width="20" height="20" />,
});