"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.stylebookRoute = void 0;
var _i18n = require("@wordpress/i18n");
var _sidebarNavigationScreen = _interopRequireDefault(require("../sidebar-navigation-screen"));
var _sidebarNavigationScreenUnsupported = _interopRequireDefault(require("../sidebar-navigation-screen-unsupported"));
var _styleBook = require("../style-book");
var _utils = require("./utils");
var _jsxRuntime = require("react/jsx-runtime");
/**
 * WordPress dependencies
 */

/**
 * Internal dependencies
 */

const stylebookRoute = exports.stylebookRoute = {
  name: 'stylebook',
  path: '/stylebook',
  areas: {
    sidebar({
      siteData
    }) {
      return (0, _utils.isClassicThemeWithStyleBookSupport)(siteData) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationScreen.default, {
        title: (0, _i18n.__)('Styles'),
        backPath: "/",
        description: (0, _i18n.__)(`Preview your website's visual identity: colors, typography, and blocks.`)
      }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationScreenUnsupported.default, {});
    },
    preview({
      siteData
    }) {
      return (0, _utils.isClassicThemeWithStyleBookSupport)(siteData) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styleBook.StyleBookPreview, {
        isStatic: true
      }) : undefined;
    },
    mobile({
      siteData
    }) {
      return (0, _utils.isClassicThemeWithStyleBookSupport)(siteData) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styleBook.StyleBookPreview, {
        isStatic: true
      }) : undefined;
    }
  }
};
//# sourceMappingURL=stylebook.js.map