/**
 * Internal dependencies
 */
import SidebarNavigationScreenMain from '../sidebar-navigation-screen-main';
import SidebarNavigationScreenUnsupported from '../sidebar-navigation-screen-unsupported';
import Editor from '../editor';
import { isClassicThemeWithStyleBookSupport } from './utils';
import { jsx as _jsx } from "react/jsx-runtime";
export const homeRoute = {
  name: 'home',
  path: '/',
  areas: {
    sidebar({
      siteData
    }) {
      const isBlockTheme = siteData.currentTheme?.is_block_theme;
      return isBlockTheme || isClassicThemeWithStyleBookSupport(siteData) ? /*#__PURE__*/_jsx(SidebarNavigationScreenMain, {}) : /*#__PURE__*/_jsx(SidebarNavigationScreenUnsupported, {});
    },
    preview({
      siteData
    }) {
      const isBlockTheme = siteData.currentTheme?.is_block_theme;
      return isBlockTheme || isClassicThemeWithStyleBookSupport(siteData) ? /*#__PURE__*/_jsx(Editor, {
        isHomeRoute: true
      }) : undefined;
    },
    mobile({
      siteData
    }) {
      const isBlockTheme = siteData.currentTheme?.is_block_theme;
      return isBlockTheme || isClassicThemeWithStyleBookSupport(siteData) ? /*#__PURE__*/_jsx(SidebarNavigationScreenMain, {}) : /*#__PURE__*/_jsx(SidebarNavigationScreenUnsupported, {});
    }
  }
};
//# sourceMappingURL=home.js.map