import { Component, Rendered } from "../app-framework";
const { HelpEmailLink } = require("../customize");
import { PROJECT_UPGRADES } from "@cocalc/util/schema";
import { Panel } from "@cocalc/frontend/antd-bootstrap";
import { render_project_quota } from "./util";
export class ProjectQuotaBoundsTable extends Component {
public render(): Rendered {
const max = PROJECT_UPGRADES.max_per_project;
return (
<Panel
header={
<span>
Maximum possible quotas <strong>per project</strong> (if you need
more, contact us at <HelpEmailLink />)
</span>
}
>
{PROJECT_UPGRADES.field_order
.filter((name) => max[name])
.map((name) => render_project_quota(name, max[name]))}
</Panel>
);
}
}