import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Analytics, DocumentEditorDebugTools, Router, SentryProvider, serviceWorkerManager, } from "@powerhousedao/connect";
import { ToastContainer, WagmiContext } from "@powerhousedao/design-system";
import { useEffect } from "react";
import { ProcessorManagerProvider } from "@powerhousedao/connect";
export const App = () => {
    useEffect(() => {
        if (import.meta.env.MODE === "development") {
            window.documentEditorDebugTools = new DocumentEditorDebugTools();
        }
        else {
            serviceWorkerManager.registerServiceWorker(false);
        }
    }, []);
    return (_jsx(SentryProvider, { children: _jsx(WagmiContext, { children: _jsxs(ProcessorManagerProvider, { children: [_jsx(ToastContainer, { position: "bottom-right", containerId: "connect" }), _jsx(Router, {}), _jsx(Analytics, {})] }) }) }));
};
//# sourceMappingURL=app.js.map