/**
 * WordPress dependencies
 */
import { registerBlockType } from '@wordpress/blocks';
import { category as icon } from '@wordpress/icons';

/**
 * Internal dependencies
 */
import Edit from './edit';
import metadata from './block.json';
import { getCategoriesAttributes } from '../utils';

/**
 * Register the block.
 */
registerBlockType( metadata, {
	attributes: getCategoriesAttributes(),
	icon,
	edit: Edit
} );
