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

33 lines
711 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,
src = "/api/logo",
}: {
small?: boolean;
icon?: boolean;
inline?: boolean;
className?: string;
src?: string;
}) {
return (
<h3 className={classNames("logo", inline && "inline", className)}>
<strong>
{icon ? (
<img className="mx-auto w-9 dark:invert" alt="Cal" title="Cal" src={`${src}?type=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={src}
2023-04-11 12:15:10 +00:00
/>
)}
</strong>
</h3>
);
}