"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");
/*
 *  This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */
const customize_1 = require("lib/share/customize");
const layout_1 = require("components/share/layout");
const A_1 = __importDefault(require("components/misc/A"));
const directory_listing_1 = __importDefault(require("components/share/directory-listing"));
const antd_1 = require("antd");
const misc_1 = require("@cocalc/util/misc");
const site_name_1 = __importDefault(require("components/share/site-name"));
const avatar_1 = __importDefault(require("./avatar"));
function Organization({ customize, contents, error, organization, }) {
    return ((0, jsx_runtime_1.jsx)(customize_1.Customize, { value: customize, children: (0, jsx_runtime_1.jsxs)(layout_1.Layout, { title: `GitHub - ${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, { href: `https://github.com/${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?.listing && (0, jsx_runtime_1.jsx)(directory_listing_1.default, { listing: contents.listing })] }) }));
}
exports.default = Organization;
//# sourceMappingURL=organization.js.map