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