"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.NavigatorToParentButton = void 0;
var _deprecated = _interopRequireDefault(require("@wordpress/deprecated"));
var _component = require("../navigator-back-button/component");
var _context = require("../../context");
var _jsxRuntime = require("react/jsx-runtime");
/**
 * WordPress dependencies
 */

/**
 * Internal dependencies
 */

function UnconnectedNavigatorToParentButton(props, forwardedRef) {
  (0, _deprecated.default)('wp.components.NavigatorToParentButton', {
    since: '6.7',
    alternative: 'wp.components.NavigatorBackButton'
  });
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_component.NavigatorBackButton, {
    ref: forwardedRef,
    ...props
  });
}

/**
 * _Note: this component is deprecated. Please use the `NavigatorBackButton`
 * component instead._
 *
 * @deprecated
 */
const NavigatorToParentButton = exports.NavigatorToParentButton = (0, _context.contextConnect)(UnconnectedNavigatorToParentButton, 'NavigatorToParentButton');
var _default = exports.default = NavigatorToParentButton;
//# sourceMappingURL=component.js.map