2022-07-01 17:19:52 +00:00
|
|
|
import { LOGO_ICON, LOGO } from "@calcom/lib/constants";
|
|
|
|
|
2021-12-02 20:52:38 +00:00
|
|
|
export default function Logo({ small, icon }: { small?: boolean; icon?: boolean }) {
|
2021-08-02 20:51:57 +00:00
|
|
|
return (
|
2021-12-02 20:52:38 +00:00
|
|
|
<h1 className="inline">
|
2021-08-02 20:51:57 +00:00
|
|
|
<strong>
|
2021-12-02 20:52:38 +00:00
|
|
|
{icon ? (
|
2022-05-14 13:49:39 +00:00
|
|
|
// eslint-disable-next-line @next/next/no-img-element
|
2022-07-01 17:19:52 +00:00
|
|
|
<img className="mx-auto w-9" alt="Cal" title="Cal" src={LOGO_ICON} />
|
2021-12-02 20:52:38 +00:00
|
|
|
) : (
|
2022-05-14 13:49:39 +00:00
|
|
|
// eslint-disable-next-line @next/next/no-img-element
|
2022-07-01 17:19:52 +00:00
|
|
|
<img className={small ? "h-4 w-auto" : "h-5 w-auto"} alt="Cal" title="Cal" src={LOGO} />
|
2021-12-02 20:52:38 +00:00
|
|
|
)}
|
2021-08-02 20:51:57 +00:00
|
|
|
</strong>
|
|
|
|
</h1>
|
|
|
|
);
|
2021-08-02 14:10:24 +00:00
|
|
|
}
|