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/admin/stats/page.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 { useTypedRedux } from "@cocalc/frontend/app-framework";
7
import { Title } from "@cocalc/frontend/components";
8
9
import { HistoricalStats } from "./historical-stats";
10
11
export const UsageStatistics: React.FC = () => {
12
const is_cocalc_com = useTypedRedux("customize", "is_cocalc_com");
13
if (!is_cocalc_com) {
14
return <></>;
15
} else {
16
return (
17
<div>
18
<Title level={4}>Usage Statistics</Title>
19
<HistoricalStats />
20
</div>
21
);
22
}
23
};
24
25