"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 detail_1 = __importDefault(require("./detail"));
const groups_1 = __importDefault(require("./groups"));
function Resources() {
    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/resources/list", component: groups_1.default }),
        react_1.default.createElement(react_router_dom_1.Route, { path: "/applications/:applicationId/resources/detail/:resourceRoot", component: detail_1.default }),
        react_1.default.createElement(react_router_dom_1.Redirect, { from: "/*", to: `/applications/${applicationId}/resources/list` })));
}
exports.default = Resources;
