Path: blob/master/src/packages/next/components/share/proxy/organization.tsx
1451 views
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { Customize } from "lib/share/customize";6import { Layout } from "components/share/layout";7import A from "components/misc/A";8import DirectoryListing from "components/share/directory-listing";9import { Alert } from "antd";10import { capitalize } from "@cocalc/util/misc";11import SiteName from "components/share/site-name";12import Avatar from "./avatar";1314interface Props {15organization: string;16customize;17contents;18error?: string;19}2021export default function Organization({22customize,23contents,24error,25organization,26}: Props) {27return (28<Customize value={customize}>29<Layout title={`GitHub - ${organization}`}>30<Avatar name={organization} style={{ float: "right" }}/>31<h1>{capitalize(organization)}'s GitHub Repositories</h1>32These are the{" "}33<A href={`https://github.com/${organization}`}>34GitHub repositories that are owned by {organization}35</A>36. You can browse and work with them via <SiteName />.37<br />38<br />39{error && <Alert type="error" message={error} showIcon />}40{contents?.listing && <DirectoryListing listing={contents.listing} />}41</Layout>42</Customize>43);44}454647