import { jsx } from "react/jsx-runtime";
import Editor from "../editor";
import SidebarNavigationScreenTemplatesBrowse from "../sidebar-navigation-screen-templates-browse";
import SidebarNavigationScreenUnsupported from "../sidebar-navigation-screen-unsupported";
const areas = {
  sidebar({ siteData }) {
    const isBlockTheme = siteData.currentTheme?.is_block_theme;
    return isBlockTheme ? /* @__PURE__ */ jsx(SidebarNavigationScreenTemplatesBrowse, { backPath: "/" }) : /* @__PURE__ */ jsx(SidebarNavigationScreenUnsupported, {});
  },
  mobile({ siteData }) {
    const isBlockTheme = siteData.currentTheme?.is_block_theme;
    return isBlockTheme ? /* @__PURE__ */ jsx(Editor, {}) : /* @__PURE__ */ jsx(SidebarNavigationScreenUnsupported, {});
  },
  preview({ siteData }) {
    const isBlockTheme = siteData.currentTheme?.is_block_theme;
    return isBlockTheme ? /* @__PURE__ */ jsx(Editor, {}) : /* @__PURE__ */ jsx(SidebarNavigationScreenUnsupported, {});
  }
};
const templateItemRoute = {
  name: "template-item",
  path: "/wp_template/*postId",
  areas
};
export {
  templateItemRoute
};
//# sourceMappingURL=template-item.js.map
