import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
import * as __WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__ from "../hooks/index.mjs";
const MainComponent = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__["default"].memo(()=>{
    const app = (0, __WEBPACK_EXTERNAL_MODULE__hooks_index_mjs__.useApp)();
    const Router = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>app.router.getRouterComponent(), [
        app
    ]);
    const Providers = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>app.getComposeProviders(), [
        app
    ]);
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(Router, {
        BaseLayout: Providers
    });
});
MainComponent.displayName = 'MainComponent';
export { MainComponent };
