"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);
};
Object.defineProperty(exports, "__esModule", { value: true });
var jsx_runtime_1 = require("react/jsx-runtime");
var antd_1 = require("antd");
var misc_1 = require("./misc");
var columns = [
    { title: "Projects", dataIndex: "type", key: "type" },
    { title: "Now", dataIndex: "5min", key: "5m" },
    { title: "Hour", dataIndex: "1h", key: "1h" },
    { title: "Day", dataIndex: "1d", key: "1d" },
    { title: "Week", dataIndex: "7d", key: "7d" },
    { title: "Month", dataIndex: "30d", key: "30d" },
];
function ActiveProject(_a) {
    var created = _a.created, active = _a.active, running = _a.running;
    var rows = [
        __assign(__assign({ type: "Actively being used" }, misc_1.ZEROS), active),
        __assign(__assign(__assign({ type: "Created" }, misc_1.ZEROS), { "5min": "-" }), created),
    ];
    return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("h2", { children: ["Running Projects: ", running.free + running.member] }), (0, jsx_runtime_1.jsxs)("p", { children: ["There are ", running.free + running.member, " projects running right now. Track the number of projects that were actively being used and the number that were created below."] }), (0, jsx_runtime_1.jsx)(antd_1.Table, { dataSource: rows, columns: columns, bordered: true, pagination: false, rowKey: "type" })] }));
}
exports.default = ActiveProject;
//# sourceMappingURL=active-projects.js.map