import "./dist-BmiIGRt0.mjs";
import "./dist-1kPMPFPD.mjs";
import { t as Breadcrumbs, x as useSetPHAppConfig } from "./connect-6ly1KPZk.mjs";
import { i as CreateDocument, n as DriveLayout, t as FolderView } from "./folder-view-BIz5tjOC.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-_IgF1GpL.mjs.map