@wordpress/block-library
Version:
Block library for the WordPress editor.
20 lines (19 loc) • 711 B
JavaScript
import { _x } from "@wordpress/i18n";
import { useBlockProps } from "@wordpress/block-editor";
import useDeprecatedTextAlign from "../utils/deprecated-text-align-attributes.mjs";
import { Fragment, jsx } from "react/jsx-runtime";
// packages/block-library/src/comment-reply-link/edit.jsx
function Edit(props) {
useDeprecatedTextAlign(props);
const blockProps = useBlockProps();
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", {
...blockProps,
children: /* @__PURE__ */ jsx("a", {
href: "#comment-reply-pseudo-link",
onClick: (event) => event.preventDefault(),
children: _x("Reply", "verb")
})
}) });
}
export { Edit as default };
//# sourceMappingURL=edit.mjs.map