Files
sean-brydonandGitHub 5cd2ba1362 perf: move stripe to billing service out of app store (#20376)
* add more methods to billingService

* update profile handler

* stripe customer handler

* verify email

* move imports + move generic methods to billing service

* move to strip ebilling service class

* push changes to mocks

* fix enum

* fix typo

* correctly update customer metadata

* fix userId type to number

* fix types on billing services

* fix type errors due to return methods differing

* fix return types
2025-03-31 09:20:27 +00:00

34 lines
1.1 KiB
TypeScript

import { getTranslate } from "app/_utils";
import type { Metadata } from "next";
import Shell from "@calcom/features/shell/Shell";
import { IS_DUB_REFERRALS_ENABLED } from "@calcom/lib/constants";
import { DubReferralsPage } from "./DubReferralsPage";
export const metadata: Metadata = {
title: "Cal.com referral program - Earn money by sharing your link",
description:
"Earn 20% recurring commissions for a full year by referring others to Cal.com, while giving your referrals 20% off for 12 months. Share your link and start earning today!",
};
// Export the appropriate component based on the feature flag
export default async function ReferralsPage() {
const t = await getTranslate();
return (
<Shell withoutMain={true}>
{IS_DUB_REFERRALS_ENABLED ? (
<div className="-m-4 sm:-mt-6 md:-mt-4">
<DubReferralsPage />
</div>
) : (
<div className="mx-auto max-w-4xl p-8 text-center">
<h2 className="mb-4 text-xl font-semibold">{t("referral_program")}</h2>
<p>{t("dub_disabled_error_message")}</p>
</div>
)}
</Shell>
);
}