cal.pub0.org/apps/web/components/ui/PoweredByCal.tsx

38 lines
1.2 KiB
TypeScript
Raw Normal View History

import Link from "next/link";
import { useIsEmbed } from "@calcom/embed-core/embed-iframe";
import { POWERED_BY_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
2021-10-15 10:53:42 +00:00
const PoweredByCal = () => {
const { t } = useLocale();
const isEmbed = useIsEmbed();
2021-10-15 10:53:42 +00:00
return (
<div className={"p-1 text-center text-xs sm:text-right" + (isEmbed ? " max-w-3xl" : "")}>
<Link href={POWERED_BY_URL}>
<a target="_blank" className="text-bookinglight opacity-50 hover:opacity-100 dark:text-white">
2021-10-15 10:53:42 +00:00
{t("powered_by")}{" "}
{
// eslint-disable-next-line @next/next/no-img-element
<img
className="relative -mt-px inline h-[10px] w-auto dark:hidden"
src="/cal-logo-word.svg"
alt="Cal.com Logo"
/>
}
{
// eslint-disable-next-line @next/next/no-img-element
<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
</a>
</Link>
</div>
);
};
2021-09-25 16:03:08 +00:00
export default PoweredByCal;