import { t as defineConfigurableModule } from "./configurable-module-Bur4JaI3.js";
import { excalidrawNodes } from "./modules/excalidraw/node.mjs";
import { jsx } from "react/jsx-runtime";
import { ExcalidrawSSRRenderer } from "@haklex/rich-ext-excalidraw/static";
//#region src/modules/excalidraw/module-config.ts
var { createModule: createExcalidrawModule, useConfig: useExcalidrawModuleConfig } = defineConfigurableModule({
	name: "excalidraw",
	defaultConfig: {}
});
//#endregion
//#region src/modules/excalidraw/renderer.tsx
var ComposedExcalidrawStaticRenderer = ({ snapshot }) => {
	const { onExpand } = useExcalidrawModuleConfig();
	return /* @__PURE__ */ jsx(ExcalidrawSSRRenderer, {
		snapshot,
		onExpand
	});
};
//#endregion
//#region src/modules/excalidraw/module.ts
var excalidrawModule = createExcalidrawModule({
	nodes: excalidrawNodes,
	renderers: { Excalidraw: ComposedExcalidrawStaticRenderer }
});
//#endregion
export { ComposedExcalidrawStaticRenderer as n, excalidrawModule as t };
