UNPKG

@wordpress/block-library

Version:
50 lines (47 loc) 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = CommentsInspectorControls; var _i18n = require("@wordpress/i18n"); var _blockEditor = require("@wordpress/block-editor"); var _lockUnlock = require("../../lock-unlock"); var _jsxRuntime = require("react/jsx-runtime"); /** * WordPress dependencies */ /** * Internal dependencies */ const { HTMLElementControl } = (0, _lockUnlock.unlock)(_blockEditor.privateApis); function CommentsInspectorControls({ attributes: { tagName }, setAttributes }) { return /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.InspectorControls, { children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.InspectorControls, { group: "advanced", children: /*#__PURE__*/(0, _jsxRuntime.jsx)(HTMLElementControl, { tagName: tagName, onChange: value => setAttributes({ tagName: value }), options: [{ label: (0, _i18n.__)('Default (<div>)'), value: 'div' }, { label: '<section>', value: 'section' }, { label: '<aside>', value: 'aside' }] }) }) }); } //# sourceMappingURL=comments-inspector-controls.js.map