2023-05-23 10:12:19 +02:00
|
|
|
import Image from "next/image";
|
|
|
|
|
|
|
|
|
|
type Props = {
|
2023-05-23 10:14:53 +02:00
|
|
|
darkSrc?: string;
|
|
|
|
|
lightSrc?: string;
|
2023-05-23 10:12:19 +02:00
|
|
|
height?: number;
|
|
|
|
|
width?: number;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export function Logo({ lightSrc, darkSrc, height = 40, width = 147.5 }: Props) {
|
|
|
|
|
return (
|
|
|
|
|
<>
|
2023-05-23 10:14:31 +02:00
|
|
|
{darkSrc && (
|
|
|
|
|
<div className="hidden dark:flex">
|
|
|
|
|
<Image
|
|
|
|
|
height={height}
|
|
|
|
|
width={width}
|
|
|
|
|
src={darkSrc}
|
|
|
|
|
alt="logo"
|
|
|
|
|
priority={true}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{lightSrc && (
|
|
|
|
|
<div className="flex dark:hidden">
|
|
|
|
|
<Image
|
|
|
|
|
height={height}
|
|
|
|
|
width={width}
|
|
|
|
|
priority={true}
|
|
|
|
|
src={lightSrc}
|
|
|
|
|
alt="logo"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2023-05-23 10:12:19 +02:00
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
}
|