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