"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const React = __importStar(require("react"));
const react_router_1 = require("react-router");
const index_1 = __importDefault(require("./index"));
// import Navbar from '../components/Navbar';
const Layout = () => (React.createElement("div", null,
    React.createElement(react_router_1.Route, { path: "/" }),
    React.createElement("div", { className: "container" },
        React.createElement(react_router_1.Switch, null, index_1.default.map((route) => React.createElement(react_router_1.Route, Object.assign({ key: `route-${route.name}` }, route)))))));
exports.default = Layout;
//# sourceMappingURL=layout.js.map