2022-09-01 12:37:21 +00:00
|
|
|
import Lottie from "lottie-react";
|
|
|
|
|
2022-07-01 17:19:52 +00:00
|
|
|
import { LOGO_ICON, LOGO } from "@calcom/lib/constants";
|
|
|
|
|
2022-09-01 12:37:21 +00:00
|
|
|
import LogoAnimated from "./LogoAnimated.json";
|
|
|
|
import LogoAnimatedWhite from "./LogoAnimatedWhite.json";
|
|
|
|
|
|
|
|
export default function Logo({
|
|
|
|
small,
|
|
|
|
icon,
|
|
|
|
animated,
|
|
|
|
}: {
|
|
|
|
small?: boolean;
|
|
|
|
icon?: boolean;
|
|
|
|
animated?: boolean;
|
|
|
|
}) {
|
2021-08-02 20:51:57 +00:00
|
|
|
return (
|
2022-08-08 19:39:51 +00:00
|
|
|
<h1 className="logo inline">
|
2022-09-01 12:37:21 +00:00
|
|
|
{animated ? (
|
|
|
|
<div className="max-w-40">
|
|
|
|
<span className="inline dark:hidden">
|
|
|
|
<Lottie animationData={LogoAnimated} loop={false} />
|
|
|
|
</span>
|
|
|
|
<span className="hidden dark:inline">
|
|
|
|
<Lottie animationData={LogoAnimatedWhite} loop={false} />
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
) : (
|
|
|
|
<strong>
|
|
|
|
{icon ? (
|
|
|
|
<img className="mx-auto w-9" alt="Cal" title="Cal" src={LOGO_ICON} />
|
|
|
|
) : (
|
|
|
|
<img className={small ? "h-4 w-auto" : "h-5 w-auto"} alt="Cal" title="Cal" src={LOGO} />
|
|
|
|
)}
|
|
|
|
</strong>
|
|
|
|
)}
|
2021-08-02 20:51:57 +00:00
|
|
|
</h1>
|
|
|
|
);
|
2021-08-02 14:10:24 +00:00
|
|
|
}
|