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/billing-page-link.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 { Rendered } from "../app-framework";
7
import { load_target } from "../history";
8
9
export function BillingPageLink(opts: { text?: string }): Rendered {
10
let { text } = opts;
11
if (!text) {
12
text = "billing page";
13
}
14
return (
15
<a onClick={visit_billing_page} style={{ cursor: "pointer" }}>
16
{text}
17
</a>
18
);
19
}
20
21
export function visit_billing_page(): void {
22
load_target("settings/billing");
23
}
24
25