Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/dashboard/src/Usage.tsx
2498 views
1
/**
2
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
3
* Licensed under the GNU Affero General Public License (AGPL).
4
* See License.AGPL.txt in the project root for license information.
5
*/
6
7
import { useCurrentOrg } from "./data/organizations/orgs-query";
8
import { UsageView } from "./usage/UsageView";
9
10
function Usage() {
11
const org = useCurrentOrg().data;
12
13
if (!org) {
14
return <></>;
15
}
16
17
return <UsageView attributionId={{ kind: "team", teamId: org.id }} />;
18
}
19
20
export default Usage;
21
22