2021-06-21 20:26:04 +00:00
|
|
|
import Link from "next/link";
|
|
|
|
|
2022-05-27 15:37:02 +00:00
|
|
|
import { useIsEmbed } from "@calcom/embed-core/embed-iframe";
|
2022-07-01 17:19:52 +00:00
|
|
|
import { POWERED_BY_URL } from "@calcom/lib/constants";
|
2022-06-27 17:23:20 +00:00
|
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
2021-10-15 10:53:42 +00:00
|
|
|
|
|
|
|
const PoweredByCal = () => {
|
|
|
|
const { t } = useLocale();
|
2022-04-08 05:33:24 +00:00
|
|
|
const isEmbed = useIsEmbed();
|
2021-10-15 10:53:42 +00:00
|
|
|
return (
|
2022-08-05 08:46:44 +00:00
|
|
|
<div className={"p-2 text-center text-xs sm:text-right" + (isEmbed ? " max-w-3xl" : "")}>
|
2023-01-06 12:13:56 +00:00
|
|
|
<Link
|
|
|
|
href={POWERED_BY_URL}
|
|
|
|
target="_blank"
|
|
|
|
className="text-bookinglight opacity-50 hover:opacity-100 dark:text-white">
|
|
|
|
{t("powered_by")}{" "}
|
|
|
|
<img
|
|
|
|
className="relative -mt-px inline h-[10px] w-auto dark:hidden"
|
|
|
|
src="/cal-logo-word.svg"
|
|
|
|
alt="Cal.com Logo"
|
|
|
|
/>
|
|
|
|
<img
|
|
|
|
className="relativ -mt-px hidden h-[10px] w-auto dark:inline"
|
|
|
|
src="/cal-logo-word-dark.svg"
|
|
|
|
alt="Cal.com Logo"
|
|
|
|
/>
|
2021-10-15 10:53:42 +00:00
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
2021-06-21 20:26:04 +00:00
|
|
|
|
2021-09-25 16:03:08 +00:00
|
|
|
export default PoweredByCal;
|