Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/next/components/licenses/overview.tsx
Views: 687
/*1* This file is part of CoCalc: Copyright © 2022 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { Icon } from "@cocalc/frontend/components/icon";6import A from "components/misc/A";7import {8OverviewRow,9OVERVIEW_LARGE_ICON_MARGIN,10OVERVIEW_STYLE,11Product,12} from "lib/styles/layouts";13import useCustomize from "lib/use-customize";14import basePath from "lib/base-path";15import { join } from "path";1617export default function Overview() {18const { isCommercial } = useCustomize();19return (20<div style={OVERVIEW_STYLE}>21<Icon style={OVERVIEW_LARGE_ICON_MARGIN} name="key" />2223<h2 style={{ marginBottom: "30px" }}>License management</h2>2425<OverviewRow>26<Product27icon="edit"28title="Manage Licenses"29href={join(basePath, "/settings/licenses")}30external31>32View and manage your licenses and see licensed projects you33collaborate on34</Product>3536<Product icon="rocket" href="/licenses/how-used" title="License Usage">37See how a specific license is being used38</Product>3940{isCommercial && (41<Product42icon="ban"43title="Cancel Subscription"44href={join(basePath, "/settings/subscriptions")}45external46>47Cancel an ongoing subscription48</Product>49)}50</OverviewRow>5152{isCommercial && (53<p>54You can also <A href="/store/site-license">buy a license</A>,{" "}55<A href="/billing/subscriptions">56manage your purchased subscriptions57</A>{" "}58or browse <A href="/billing/receipts">your receipts and invoices</A>.59</p>60)}61<p>62More general, you can also read{" "}63<A href="https://doc.cocalc.com/licenses.html">64the license documentation65</A>66.67</p>68</div>69);70}717273