2023-04-14 17:22:59 +02:00
|
|
|
import Image from "next/image";
|
|
|
|
|
import { ZitadelLogoDark } from "./ZitadelLogoDark";
|
|
|
|
|
import { ZitadelLogoLight } from "./ZitadelLogoLight";
|
|
|
|
|
type Props = {
|
|
|
|
|
height?: number;
|
|
|
|
|
width?: number;
|
|
|
|
|
};
|
2023-04-03 13:39:51 +02:00
|
|
|
|
2023-04-14 17:22:59 +02:00
|
|
|
export function ZitadelLogo({ height = 40, width = 147.5 }: Props) {
|
2023-04-03 13:39:51 +02:00
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<div className="hidden dark:flex">
|
2023-04-14 17:22:59 +02:00
|
|
|
{/* <ZitadelLogoLight /> */}
|
|
|
|
|
|
|
|
|
|
<Image
|
|
|
|
|
height={height}
|
|
|
|
|
width={width}
|
|
|
|
|
src="/zitadel-logo-light.svg"
|
|
|
|
|
alt="zitadel logo"
|
2023-04-21 16:13:52 +02:00
|
|
|
priority={true}
|
2023-04-14 17:22:59 +02:00
|
|
|
/>
|
2023-04-03 13:39:51 +02:00
|
|
|
</div>
|
|
|
|
|
<div className="flex dark:hidden">
|
2023-04-14 17:22:59 +02:00
|
|
|
<Image
|
|
|
|
|
height={height}
|
|
|
|
|
width={width}
|
2023-04-21 16:13:52 +02:00
|
|
|
priority={true}
|
2023-04-14 17:22:59 +02:00
|
|
|
src="/zitadel-logo-dark.svg"
|
|
|
|
|
alt="zitadel logo"
|
|
|
|
|
/>
|
2023-04-03 13:39:51 +02:00
|
|
|
</div>
|
|
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
}
|