cal.pub0.org/packages/ui/components/logo/Logo.tsx

22 lines
604 B
TypeScript
Raw Normal View History

2023-04-11 12:15:10 +00:00
import classNames from "@calcom/lib/classNames";
import { LOGO_ICON, LOGO } from "@calcom/lib/constants";
export default function Logo({ small, icon }: { small?: boolean; icon?: boolean }) {
return (
2023-04-11 12:15:10 +00:00
<h3 className="logo inline ">
<strong>
{icon ? (
2023-04-11 12:15:10 +00:00
<img className="mx-auto w-9 dark:invert" alt="Cal" title="Cal" src={LOGO_ICON} />
) : (
2023-04-11 12:15:10 +00:00
<img
className={classNames(small ? "h-4 w-auto" : "h-5 w-auto", "dark:invert")}
alt="Cal"
title="Cal"
src={LOGO}
/>
)}
</strong>
</h3>
);
}