import "./document-drive-sTKoi6L4.js";
import { t as Breadcrumbs } from "./connect-BMrgEG7X.js";
import { T as useSetPHAppConfig } from "./dist-B6zWOl4d.js";
import { i as CreateDocument, n as DriveLayout, t as FolderView } from "./folder-view-D9jBl4kJ.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-CzsQw1pE.js.map