/**
 * Internal dependencies
 */
import Editor from '../editor';
import SidebarNavigationScreenPatterns from '../sidebar-navigation-screen-patterns';
import { isClassicThemeWithStyleBookSupport } from './utils';
import { jsx as _jsx } from "react/jsx-runtime";
export const patternItemRoute = {
  name: 'pattern-item',
  path: '/wp_block/:postId',
  areas: {
    sidebar({
      siteData
    }) {
      const isBlockTheme = siteData.currentTheme?.is_block_theme;
      const backPath = isBlockTheme || isClassicThemeWithStyleBookSupport(siteData) ? '/' : undefined;
      return /*#__PURE__*/_jsx(SidebarNavigationScreenPatterns, {
        backPath: backPath
      });
    },
    mobile: /*#__PURE__*/_jsx(Editor, {}),
    preview: /*#__PURE__*/_jsx(Editor, {})
  }
};
//# sourceMappingURL=pattern-item.js.map