"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 conditions_1 = __importDefault(require("./conditions"));
const functions_1 = __importDefault(require("./functions"));
const pages_1 = __importDefault(require("./pages"));
const templates_1 = __importDefault(require("./templates"));
const variables_1 = __importDefault(require("./variables"));
function File() {
    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/file/conditions", component: conditions_1.default }),
        react_1.default.createElement(react_router_dom_1.Route, { path: "/applications/:applicationId/file/functions", component: functions_1.default }),
        react_1.default.createElement(react_router_dom_1.Route, { path: "/applications/:applicationId/file/pages", component: pages_1.default }),
        react_1.default.createElement(react_router_dom_1.Route, { path: "/applications/:applicationId/file/templates", component: templates_1.default }),
        react_1.default.createElement(react_router_dom_1.Route, { path: "/applications/:applicationId/file/variables", component: variables_1.default }),
        react_1.default.createElement(react_router_dom_1.Redirect, { from: "/*", to: `/applications/${applicationId}/file/pages` })));
}
exports.default = File;
