import { jsx } from "react/jsx-runtime";
import { TooltipProvider } from "@uipath/apollo-wind/components/ui/tooltip";
import { CanvasTooltipProviderMarker } from "../CanvasTooltip.js";
import { BaseCanvasModeProvider } from "./BaseCanvasModeProvider.js";
import { CanvasThemeProvider } from "./CanvasThemeContext.js";
import { ConnectedHandlesProvider } from "./ConnectedHandlesContext.js";
import { SelectionStateProvider } from "./SelectionStateContext.js";
function CanvasProviders({ nodes, edges, mode, isDarkMode, children }) {
    return /*#__PURE__*/ jsx(CanvasThemeProvider, {
        isDarkMode: isDarkMode,
        children: /*#__PURE__*/ jsx(TooltipProvider, {
            delayDuration: 200,
            skipDelayDuration: 100,
            children: /*#__PURE__*/ jsx(CanvasTooltipProviderMarker, {
                children: /*#__PURE__*/ jsx(ConnectedHandlesProvider, {
                    edges: edges,
                    children: /*#__PURE__*/ jsx(BaseCanvasModeProvider, {
                        mode: mode,
                        children: /*#__PURE__*/ jsx(SelectionStateProvider, {
                            nodes: nodes,
                            children: children
                        })
                    })
                })
            })
        })
    });
}
export { CanvasProviders };
