Spaces:
Running
Running
File size: 1,054 Bytes
62fd2ea 85ff40b b2aa163 62fd2ea |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
import Image from "next/image";
import { Poppins } from "next/font/google";
import { cn } from "@/lib/utils";
const font = Poppins({
subsets: ["latin"],
weight: ["400", "600"],
});
interface LogoProps {
text?: string;
showText?: boolean;
showCopyright?: boolean;
}
const Logo = ({ text, showText, showCopyright }: LogoProps) => {
return (
<div className="flex items-center gap-x-2">
<Image
src="/logo.png"
height="40"
width="40"
alt="Logo"
className="dark:hidden"
/>
<Image
src="/logo-white.png"
height="40"
width="40"
alt="Logo"
className="hidden dark:block"
/>
{showText && (
<p className={cn("font-semibold invisible md:visible", font.className)}>
{text}
</p>
)}
{showCopyright && (
<div className="w-[230px] text-sm font-medium text-muted-foreground">
© {new Date().getFullYear()} G-SPACE, Inc
</div>
)}
</div>
);
};
export default Logo;
|