"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.homeRoute = void 0;
var _sidebarNavigationScreenMain = _interopRequireDefault(require("../sidebar-navigation-screen-main"));
var _sidebarNavigationScreenUnsupported = _interopRequireDefault(require("../sidebar-navigation-screen-unsupported"));
var _editor = _interopRequireDefault(require("../editor"));
var _utils = require("./utils");
var _jsxRuntime = require("react/jsx-runtime");
/**
 * Internal dependencies
 */

const homeRoute = exports.homeRoute = {
  name: 'home',
  path: '/',
  areas: {
    sidebar({
      siteData
    }) {
      const isBlockTheme = siteData.currentTheme?.is_block_theme;
      return isBlockTheme || (0, _utils.isClassicThemeWithStyleBookSupport)(siteData) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationScreenMain.default, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationScreenUnsupported.default, {});
    },
    preview({
      siteData
    }) {
      const isBlockTheme = siteData.currentTheme?.is_block_theme;
      return isBlockTheme || (0, _utils.isClassicThemeWithStyleBookSupport)(siteData) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_editor.default, {
        isHomeRoute: true
      }) : undefined;
    },
    mobile({
      siteData
    }) {
      const isBlockTheme = siteData.currentTheme?.is_block_theme;
      return isBlockTheme || (0, _utils.isClassicThemeWithStyleBookSupport)(siteData) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationScreenMain.default, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationScreenUnsupported.default, {});
    }
  }
};
//# sourceMappingURL=home.js.map