"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = SidebarNavigationScreenTemplatesBrowse;
var _i18n = require("@wordpress/i18n");
var _router = require("@wordpress/router");
var _sidebarNavigationScreen = _interopRequireDefault(require("../sidebar-navigation-screen"));
var _lockUnlock = require("../../lock-unlock");
var _content = _interopRequireDefault(require("./content"));
var _jsxRuntime = require("react/jsx-runtime");
/**
 * WordPress dependencies
 */

/**
 * Internal dependencies
 */

const {
  useLocation
} = (0, _lockUnlock.unlock)(_router.privateApis);
function SidebarNavigationScreenTemplatesBrowse({
  backPath
}) {
  const {
    params: {
      activeView = 'all'
    }
  } = useLocation();
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationScreen.default, {
    title: (0, _i18n.__)('Templates'),
    description: (0, _i18n.__)('Create new templates, or reset any customizations made to the templates supplied by your theme.'),
    backPath: backPath,
    content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_content.default, {
      activeView: activeView,
      title: (0, _i18n.__)('All templates')
    })
  });
}
//# sourceMappingURL=index.js.map