MCPcopy
hub / github.com/tolgee/tolgee-platform / GoToBilling

Function GoToBilling

webapp/src/component/GoToBilling.tsx:12–24  ·  view source on GitHub ↗
({ render }: Props)

Source from the content-addressed store, hash-verified

10};
11
12export const GoToBilling = ({ render }: Props) => {
13 const billingEnabled = useGlobalContext(
14 (c) => c.initialData.serverConfiguration.billing.enabled
15 );
16 if (!billingEnabled) {
17 return null;
18 }
19 return render({
20 href: LINKS.GO_TO_CLOUD_BILLING.build(),
21 rel: 'noopener noreferrer',
22 target: '_blank',
23 });
24};

Callers

nothing calls this directly

Calls 1

buildMethod · 0.80

Tested by

no test coverage detected