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/next/components/billing/overview.tsx
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { Icon } from "@cocalc/frontend/components/icon";
7
import { Typography } from "antd";
8
import A from "components/misc/A";
9
import {
10
OverviewRow,
11
OVERVIEW_LARGE_ICON_MARGIN,
12
OVERVIEW_STYLE,
13
Product,
14
} from "lib/styles/layouts";
15
const { Text } = Typography;
16
import basePath from "lib/base-path";
17
import { join } from "path";
18
19
export default function Overview() {
20
return (
21
<div style={OVERVIEW_STYLE}>
22
<Icon style={OVERVIEW_LARGE_ICON_MARGIN} name="credit-card" />
23
24
<h2 style={{ marginBottom: "30px" }}>Billing Management</h2>
25
26
<OverviewRow>
27
<Product
28
icon="calendar"
29
title="Subscriptions"
30
href="/settings/subscriptions"
31
external
32
>
33
View, Edit or <Text strong>cancel</Text> your subscriptions
34
</Product>
35
36
<Product
37
icon="list"
38
title="Invoices and Receipts"
39
href="/billing/receipts"
40
>
41
View your <Text strong>invoices</Text> and{" "}
42
<Text strong>receipts</Text>
43
</Product>
44
45
<Product
46
icon="edit"
47
title="Manage Licenses"
48
href={join(basePath, "/settings/licenses")}
49
external
50
>
51
View and manage your licenses and see licensed projects you
52
collaborate on
53
</Product>
54
55
<Product
56
icon="credit-card"
57
title="Payment Methods"
58
href="/billing/cards"
59
>
60
Add, remove, or change your <Text strong>credit cards</Text>
61
</Product>
62
</OverviewRow>
63
64
<p>
65
You can also <A href="/store/site-license">buy a license</A> at{" "}
66
<A href="/store">the store</A> and browse{" "}
67
<A external href="/settings/licenses">
68
your existing licenses
69
</A>{" "}
70
and <A href="/vouchers/redeemed">vouchers you have redeemed</A>.
71
</p>
72
<p>
73
More general, you can also read{" "}
74
<A href="https://doc.cocalc.com/account/purchases.html#subscription-list">
75
the billing documentation
76
</A>
77
.
78
</p>
79
</div>
80
);
81
}
82
83