"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const opened_files_1 = __importDefault(require("./opened-files"));
const active_users_1 = __importDefault(require("./active-users"));
const active_projects_1 = __importDefault(require("./active-projects"));
const A_1 = __importDefault(require("components/misc/A"));
function Statistics({ stats }) {
    return ((0, jsx_runtime_1.jsxs)("div", { style: { maxWidth: "100%", overflowX: "auto" }, children: ["Last Updated: ", new Date(stats.time).toLocaleString(), " ", (0, jsx_runtime_1.jsx)(A_1.default, { 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