import "./dist-tGjeNmlh.js";
import "./dist-DOMEWT3x.js";
import { t as Breadcrumbs, x as useSetPHAppConfig } from "./connect-BpTM-Oto.js";
import { i as CreateDocument, n as DriveLayout, t as FolderView } from "./folder-view-6EM2n7ER.js";
import { jsx, jsxs } from "react/jsx-runtime";
//#region editors/generic-drive-explorer/config.ts
const editorConfig = {
	allowedDocumentTypes: [],
	isDragAndDropEnabled: true
};
//#endregion
//#region editors/generic-drive-explorer/editor.tsx
function Editor(props) {
	useSetPHAppConfig(editorConfig);
	const { className, children } = props;
	const showDocumentEditor = !!children;
	return /* @__PURE__ */ jsxs(DriveLayout, {
		className,
		children: [
			!showDocumentEditor && /* @__PURE__ */ jsx(DriveLayout.Header, { children: /* @__PURE__ */ jsx(Breadcrumbs, {}) }),
			showDocumentEditor ? children : /* @__PURE__ */ jsx(DriveLayout.Content, { children: /* @__PURE__ */ jsx(FolderView, {}) }),
			!showDocumentEditor && /* @__PURE__ */ jsx(DriveLayout.Footer, { children: /* @__PURE__ */ jsx(CreateDocument, {}) })
		]
	});
}
//#endregion
export { Editor as default };

//# sourceMappingURL=editor-jrcyVuJ9.js.map