import "./document-drive-DjL9iikf.mjs";
import { t as Breadcrumbs } from "./connect-C8Ur6M5x.mjs";
import { T as useSetPHAppConfig } from "./dist-D3qXr1ES.mjs";
import { i as CreateDocument, n as DriveLayout, t as FolderView } from "./folder-view-C9m-Kbjh.mjs";
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-B6gn6QpO.mjs.map