import { Trans } from "react-i18next"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import ConfirmationDialogContent from "@calcom/ui/ConfirmationDialogContent"; import { Dialog, DialogTrigger } from "@calcom/ui/Dialog"; import { Icon, BadgeCheckIcon } from "@calcom/ui/Icon"; export default function LicenseBanner() { const { t } = useLocale(); /* Set this value to 'agree' to accept our license: LICENSE: https://github.com/calcom/cal.com/blob/main/LICENSE Summary of terms: - The codebase has to stay open source, whether it was modified or not - You can not repackage or sell the codebase - Acquire a commercial license to remove these terms by visiting: cal.com/sales NEXT_PUBLIC_LICENSE_CONSENT='' */ if (process.env.NEXT_PUBLIC_LICENSE_CONSENT === "agree" || process.env.NEXT_PUBLIC_IS_E2E) { return null; } return (

Accept our license by changing the .env variable NEXT_PUBLIC_LICENSE_CONSENT to 'agree'.

); function DialogContent() { return ( To remove this banner, please open your .env file and change the NEXT_PUBLIC_LICENSE_CONSENT variable to 'agreeapos;.

{t("terms_summary")}:

); } }