UNPKG

@wordpress/block-library

Version:
49 lines (48 loc) 971 B
// packages/block-library/src/navigation-link/deprecated.tsx import { InnerBlocks } from "@wordpress/block-editor"; import { jsx } from "react/jsx-runtime"; var deprecated = [ { isEligible(attributes) { return attributes.nofollow; }, attributes: { label: { type: "string" }, type: { type: "string" }, nofollow: { type: "boolean" }, description: { type: "string" }, id: { type: "number" }, opensInNewTab: { type: "boolean", default: false }, url: { type: "string" } }, migrate({ nofollow, ...rest }) { return { rel: nofollow ? "nofollow" : "", ...rest }; }, save() { return /* @__PURE__ */ jsx(InnerBlocks.Content, {}); } } ]; var deprecated_default = deprecated; export { deprecated_default as default }; //# sourceMappingURL=deprecated.mjs.map