Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/dashboard/src/data/billing/stripe-key-query.ts
2501 views
1
/**
2
* Copyright (c) 2023 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 { useQuery } from "@tanstack/react-query";
8
import { getGitpodService } from "../../service/service";
9
10
export const useStripePublishableKey = () => {
11
return useQuery(["billing", "stripe-publishable-key"], async () => {
12
return await getGitpodService().server.getStripePublishableKey();
13
});
14
};
15
16