import { XIcon } from "@heroicons/react/outline"; import { BadgeCheckIcon } from "@heroicons/react/solid"; import { Trans } from "react-i18next"; import { useLocale } from "@lib/hooks/useLocale"; import { Dialog, DialogTrigger } from "@components/Dialog"; import ConfirmationDialogContent from "@components/dialog/ConfirmationDialogContent"; 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 emailing: license@cal.com NEXT_PUBLIC_LICENSE_CONSENT='' */ if (process.env.NEXT_PUBLIC_LICENSE_CONSENT === "agree") { 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")}:

); } }