import { jsx } from "react/jsx-runtime";
import { __ } from "@wordpress/i18n";
import Editor from "../editor";
import DataViewsSidebarContent from "../sidebar-dataviews";
import SidebarNavigationScreen from "../sidebar-navigation-screen";
import SidebarNavigationScreenUnsupported from "../sidebar-navigation-screen-unsupported";
const pageItemRoute = {
  name: "page-item",
  path: "/page/:postId",
  areas: {
    sidebar({ siteData }) {
      const isBlockTheme = siteData.currentTheme?.is_block_theme;
      return isBlockTheme ? /* @__PURE__ */ jsx(
        SidebarNavigationScreen,
        {
          title: __("Pages"),
          backPath: "/",
          content: /* @__PURE__ */ jsx(DataViewsSidebarContent, { postType: "page" })
        }
      ) : /* @__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, {});
    }
  }
};
export {
  pageItemRoute
};
//# sourceMappingURL=page-item.js.map
