UNPKG

@wordpress/components

Version:
22 lines (21 loc) • 796 B
import deprecated from "@wordpress/deprecated"; import { NavigatorBackButton } from "../navigator-back-button/component.mjs"; import { contextConnect } from "../../context/index.mjs"; import { jsx } from "react/jsx-runtime"; // packages/components/src/navigator/navigator-to-parent-button/component.tsx function UnconnectedNavigatorToParentButton(props, forwardedRef) { deprecated("wp.components.NavigatorToParentButton", { since: "6.7", alternative: "wp.components.Navigator.BackButton" }); return /* @__PURE__ */ jsx(NavigatorBackButton, { ref: forwardedRef, ...props }); } /** * @deprecated */ const NavigatorToParentButton = contextConnect(UnconnectedNavigatorToParentButton, "Navigator.ToParentButton"); export { NavigatorToParentButton }; //# sourceMappingURL=component.mjs.map