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

31 lines
678 B
TypeScript
Raw Normal View History

2023-04-11 12:15:10 +00:00
import classNames from "@calcom/lib/classNames";
export default function Logo({
small,
icon,
inline = true,
className,
}: {
small?: boolean;
icon?: boolean;
inline?: boolean;
className?: string;
}) {
return (
<h3 className={classNames("logo", inline && "inline", className)}>
<strong>
{icon ? (
<img className="mx-auto w-9 dark:invert" alt="Cal" title="Cal" src="/api/logo?icon=1" />
) : (
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="/api/logo"
2023-04-11 12:15:10 +00:00
/>
)}
</strong>
</h3>
);
}