UNPKG

@wordpress/components

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