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/licenses/overview.tsx
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2022 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { Icon } from "@cocalc/frontend/components/icon";
7
import A from "components/misc/A";
8
import {
9
OverviewRow,
10
OVERVIEW_LARGE_ICON_MARGIN,
11
OVERVIEW_STYLE,
12
Product,
13
} from "lib/styles/layouts";
14
import useCustomize from "lib/use-customize";
15
import basePath from "lib/base-path";
16
import { join } from "path";
17
18
export default function Overview() {
19
const { isCommercial } = useCustomize();
20
return (
21
<div style={OVERVIEW_STYLE}>
22
<Icon style={OVERVIEW_LARGE_ICON_MARGIN} name="key" />
23
24
<h2 style={{ marginBottom: "30px" }}>License management</h2>
25
26
<OverviewRow>
27
<Product
28
icon="edit"
29
title="Manage Licenses"
30
href={join(basePath, "/settings/licenses")}
31
external
32
>
33
View and manage your licenses and see licensed projects you
34
collaborate on
35
</Product>
36
37
<Product icon="rocket" href="/licenses/how-used" title="License Usage">
38
See how a specific license is being used
39
</Product>
40
41
{isCommercial && (
42
<Product
43
icon="ban"
44
title="Cancel Subscription"
45
href={join(basePath, "/settings/subscriptions")}
46
external
47
>
48
Cancel an ongoing subscription
49
</Product>
50
)}
51
</OverviewRow>
52
53
{isCommercial && (
54
<p>
55
You can also <A href="/store/site-license">buy a license</A>,{" "}
56
<A href="/billing/subscriptions">
57
manage your purchased subscriptions
58
</A>{" "}
59
or browse <A href="/billing/receipts">your receipts and invoices</A>.
60
</p>
61
)}
62
<p>
63
More general, you can also read{" "}
64
<A href="https://doc.cocalc.com/licenses.html">
65
the license documentation
66
</A>
67
.
68
</p>
69
</div>
70
);
71
}
72
73