CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/billing/project-quota-bounds-table.tsx
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { Component, Rendered } from "../app-framework";
7
const { HelpEmailLink } = require("../customize");
8
import { PROJECT_UPGRADES } from "@cocalc/util/schema";
9
import { Panel } from "@cocalc/frontend/antd-bootstrap";
10
import { render_project_quota } from "./util";
11
12
export class ProjectQuotaBoundsTable extends Component {
13
public render(): Rendered {
14
const max = PROJECT_UPGRADES.max_per_project;
15
return (
16
<Panel
17
header={
18
<span>
19
Maximum possible quotas <strong>per project</strong> (if you need
20
more, contact us at <HelpEmailLink />)
21
</span>
22
}
23
>
24
{PROJECT_UPGRADES.field_order
25
.filter((name) => max[name])
26
.map((name) => render_project_quota(name, max[name]))}
27
</Panel>
28
);
29
}
30
}
31
32