"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");
/*
 *  This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */
var customize_1 = require("lib/share/customize");
var layout_1 = require("components/share/layout");
var A_1 = __importDefault(require("components/misc/A"));
var directory_listing_1 = __importDefault(require("components/share/directory-listing"));
var antd_1 = require("antd");
var misc_1 = require("@cocalc/util/misc");
var site_name_1 = __importDefault(require("components/share/site-name"));
var avatar_1 = __importDefault(require("./avatar"));
function Organization(_a) {
    var customize = _a.customize, contents = _a.contents, error = _a.error, organization = _a.organization;
    return ((0, jsx_runtime_1.jsx)(customize_1.Customize, __assign({ value: customize }, { children: (0, jsx_runtime_1.jsxs)(layout_1.Layout, __assign({ title: "GitHub - ".concat(organization) }, { children: [(0, jsx_runtime_1.jsx)(avatar_1.default, { name: organization, style: { float: "right" } }), (0, jsx_runtime_1.jsxs)("h1", { children: [(0, misc_1.capitalize)(organization), "'s GitHub Repositories"] }), "These are the", " ", (0, jsx_runtime_1.jsxs)(A_1.default, __assign({ href: "https://github.com/".concat(organization) }, { children: ["GitHub repositories that are owned by ", organization] })), ". You can browse and work with them via ", (0, jsx_runtime_1.jsx)(site_name_1.default, {}), ".", (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), error && (0, jsx_runtime_1.jsx)(antd_1.Alert, { type: "error", message: error, showIcon: true }), (contents === null || contents === void 0 ? void 0 : contents.listing) && (0, jsx_runtime_1.jsx)(directory_listing_1.default, { listing: contents.listing })] })) })));
}
exports.default = Organization;
//# sourceMappingURL=organization.js.map