"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var jsx_runtime_1 = require("react/jsx-runtime");
var opened_files_1 = __importDefault(require("./opened-files"));
var active_users_1 = __importDefault(require("./active-users"));
var active_projects_1 = __importDefault(require("./active-projects"));
var A_1 = __importDefault(require("components/misc/A"));
function Statistics(_a) {
    var stats = _a.stats;
    return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: { maxWidth: "100%", overflowX: "scroll" } }, { children: ["Last Updated: ", new Date(stats.time).toLocaleString(), " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "/info/status" }, { children: "(update)" })), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(active_users_1.default, { created: stats.accounts_created, active: stats.accounts_active, hubServers: stats.hub_servers }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(active_projects_1.default, { created: stats.projects_created, active: stats.projects_edited, running: stats.running_projects }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(opened_files_1.default, { filesOpened: stats.files_opened })] })));
}
exports.default = Statistics;
//# sourceMappingURL=index.js.map