"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const react_router_dom_1 = require("react-router-dom");
const application_1 = __importDefault(require("./application"));
const builder_1 = __importDefault(require("./builder"));
const Setting = () => {
    const { applicationId } = (0, react_router_dom_1.useParams)();
    return (react_1.default.createElement(react_router_dom_1.Switch, null,
        react_1.default.createElement(react_router_dom_1.Route, { path: "/applications/:applicationId/settings/application", component: application_1.default }),
        react_1.default.createElement(react_router_dom_1.Route, { path: "/applications/:applicationId/settings/builder", component: builder_1.default }),
        react_1.default.createElement(react_router_dom_1.Redirect, { from: "/*", to: `/applications/${applicationId}/settings/application` })));
};
exports.default = Setting;
