mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-12 11:26:07 +03:00
7e70e4fc84
Issue https://github.com/StanGirard/quivr/issues/1404 https://github.com/StanGirard/quivr/assets/63923024/703fedf3-2f39-407b-afc2-78318829ca0f
25 lines
489 B
TypeScript
25 lines
489 B
TypeScript
import Image from "next/image";
|
|
|
|
interface QuivrLogoProps {
|
|
size: number;
|
|
color?: "white" | "black" | "primary";
|
|
}
|
|
|
|
export const QuivrLogo = ({
|
|
size,
|
|
color = "white",
|
|
}: QuivrLogoProps): JSX.Element => {
|
|
const src = color === "primary" ? "/logo-primary.svg" : "/logo-white.svg";
|
|
const filter = color === "black" ? "invert(1)" : "none";
|
|
|
|
return (
|
|
<Image
|
|
src={src}
|
|
alt="Quivr Logo"
|
|
width={size}
|
|
height={size}
|
|
style={{ filter }}
|
|
/>
|
|
);
|
|
};
|