({ render }: Props)
| 10 | }; |
| 11 | |
| 12 | export 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 | }; |