/**
 * Internal dependencies
 */
import Editor from '../editor';
import SidebarNavigationScreenTemplatesBrowse from '../sidebar-navigation-screen-templates-browse';
import PageTemplates from '../page-templates';
import { jsx as _jsx } from "react/jsx-runtime";
export const templatesRoute = {
  name: 'templates',
  path: '/template',
  areas: {
    sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreenTemplatesBrowse, {
      backPath: "/"
    }),
    content: /*#__PURE__*/_jsx(PageTemplates, {}),
    preview({
      query
    }) {
      const isListView = query.layout === 'list';
      return isListView ? /*#__PURE__*/_jsx(Editor, {}) : undefined;
    },
    mobile: /*#__PURE__*/_jsx(PageTemplates, {})
  },
  widths: {
    content({
      query
    }) {
      const isListView = query.layout === 'list';
      return isListView ? 380 : undefined;
    }
  }
};
//# sourceMappingURL=templates.js.map