"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StaticPage = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const StaticPages_1 = require("./StaticPages");
const StaticPage = ({ routeProps, appName, mainPath, staticRoutes, apiConfig }) => {
    const { pathname } = routeProps.location;
    let TargetPage = () => (jsx_runtime_1.jsx(StaticPages_1.DefaultPage, { appName: appName, mainPath: mainPath, body: pathname }, void 0));
    if (staticRoutes && staticRoutes[pathname]) {
        TargetPage = staticRoutes[pathname];
    }
    return (jsx_runtime_1.jsx(TargetPage, Object.assign({ appName: appName, mainPath: mainPath, apiConfig: apiConfig }, routeProps), void 0));
};
exports.StaticPage = StaticPage;
//# sourceMappingURL=StaticPage.js.map