import { createElement } from '@wordpress/element' import { __ } from 'ct-i18n' import { registerBlockType } from '@wordpress/blocks' import { getAttributesFromOptions, getOptionsForBlock } from '../../utils' export const options = getOptionsForBlock('search') export const defaultAttributes = getAttributesFromOptions(options) import { colorsDefaults } from './colors' import Edit from './Edit' registerBlockType('blocksy/search', { apiVersion: 3, title: __('Advanced Search', 'blocksy'), description: __('Insert a search block anywhere on the site.', 'blocksy'), icon: { src: ( ), }, category: 'blocksy-blocks', attributes: { ...defaultAttributes, ...colorsDefaults, }, supports: { spacing: { margin: true, __experimentalDefaultControls: { margin: true, }, }, __experimentalBorder: { color: false, radius: true, width: false, __experimentalSkipSerialization: true, __experimentalDefaultControls: { color: false, radius: true, width: false, }, }, }, edit: (props) => , save: function () { return
Blocksy: Search Block
}, })