@wordpress/block-library
Version:
Block library for the WordPress editor.
37 lines (36 loc) • 1.32 kB
JavaScript
;
Object.defineProperties(exports, {
__esModule: { value: true },
[Symbol.toStringTag]: { value: "Module" }
});
let _wordpress_i18n = require("@wordpress/i18n");
let _wordpress_block_editor = require("@wordpress/block-editor");
let ______lock_unlock_ts = require("../../lock-unlock.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
// packages/block-library/src/comments/edit/comments-inspector-controls.jsx
const { HTMLElementControl } = (0, ______lock_unlock_ts.unlock)(_wordpress_block_editor.privateApis);
function CommentsInspectorControls({ attributes: { tagName }, setAttributes }) {
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_block_editor.InspectorControls, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_block_editor.InspectorControls, {
group: "advanced",
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HTMLElementControl, {
tagName,
onChange: (value) => setAttributes({ tagName: value }),
options: [
{
label: (0, _wordpress_i18n.__)("Default (<div>)"),
value: "div"
},
{
label: "<section>",
value: "section"
},
{
label: "<aside>",
value: "aside"
}
]
})
}) });
}
exports.default = CommentsInspectorControls;
//# sourceMappingURL=comments-inspector-controls.cjs.map