"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 fast_1 = __importDefault(require("./fast"));
const list_1 = __importDefault(require("./list"));
function Packages() {
    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/packages/content", component: fast_1.default }),
        react_1.default.createElement(react_router_dom_1.Route, { path: "/applications/:applicationId/packages/detail", component: detail_1.default }),
        react_1.default.createElement(react_router_dom_1.Route, { path: "/applications/:applicationId/packages/list", component: list_1.default }),
        react_1.default.createElement(react_router_dom_1.Redirect, { from: "/*", to: `/applications/${applicationId}/packages/list` })));
}
exports.default = Packages;
