mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 01:21:48 +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 }}
|
|
/>
|
|
);
|
|
};
|