@wordpress/block-library
Version:
Block library for the WordPress editor.
16 lines (15 loc) • 610 B
JavaScript
import { TextControl } from "@wordpress/components";
import { useEntityProp } from "@wordpress/core-data";
import { __ } from "@wordpress/i18n";
import { jsx } from "react/jsx-runtime";
// packages/block-library/src/navigation/edit/navigation-menu-name-control.jsx
function NavigationMenuNameControl() {
const [title, updateTitle] = useEntityProp("postType", "wp_navigation", "title");
return /* @__PURE__ */ jsx(TextControl, {
label: __("Menu name"),
value: title,
onChange: updateTitle
});
}
export { NavigationMenuNameControl as default };
//# sourceMappingURL=navigation-menu-name-control.mjs.map