UNPKG

@wordpress/block-library

Version:
30 lines (29 loc) 935 B
import { jsx } from "react/jsx-runtime"; import { __ } from "@wordpress/i18n"; import { InspectorControls, privateApis as blockEditorPrivateApis } from "@wordpress/block-editor"; import { unlock } from "../../lock-unlock"; const { HTMLElementControl } = unlock(blockEditorPrivateApis); function CommentsInspectorControls({ attributes: { tagName }, setAttributes }) { return /* @__PURE__ */ jsx(InspectorControls, { children: /* @__PURE__ */ jsx(InspectorControls, { group: "advanced", children: /* @__PURE__ */ jsx( HTMLElementControl, { tagName, onChange: (value) => setAttributes({ tagName: value }), options: [ { label: __("Default (<div>)"), value: "div" }, { label: "<section>", value: "section" }, { label: "<aside>", value: "aside" } ] } ) }) }); } export { CommentsInspectorControls as default }; //# sourceMappingURL=comments-inspector-controls.js.map