mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 09:32:22 +03:00
31 lines
584 B
TypeScript
31 lines
584 B
TypeScript
import Image from "next/image";
|
|
|
|
interface QuivrLogoProps {
|
|
size: number;
|
|
color?: "white" | "black" | "primary" | "accent";
|
|
}
|
|
|
|
export const QuivrLogo = ({
|
|
size,
|
|
color = "white",
|
|
}: QuivrLogoProps): JSX.Element => {
|
|
let src = "/logo-white.svg";
|
|
if (color === "primary") {
|
|
src = "/logo-primary.svg";
|
|
} else if (color === "accent") {
|
|
src = "/logo-accent.svg";
|
|
}
|
|
|
|
const filter = color === "black" ? "invert(1)" : "none";
|
|
|
|
return (
|
|
<Image
|
|
src={src}
|
|
alt="Quivr Logo"
|
|
width={size}
|
|
height={size}
|
|
style={{ filter }}
|
|
/>
|
|
);
|
|
};
|