Created
June 2, 2025 20:11
-
-
Save brijr/a35f94943c13106b76749a59d44824d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import LogoLightMode from "@/public/logo.svg"; | |
import LogoDarkMode from "@/public/logo-white.svg"; | |
import Image from "next/image"; | |
import Link from "next/link"; | |
export const Logo = ({ | |
href = "/", | |
width = 72, | |
className, | |
}: { | |
href?: string; | |
width?: number; | |
className?: string; | |
}) => { | |
return ( | |
<Link href={href} className={className}> | |
<Image | |
width={width} | |
src={LogoLightMode} | |
alt="Logo" | |
className="block dark:hidden" | |
/> | |
<Image | |
width={width} | |
src={LogoDarkMode} | |
alt="Logo" | |
className="hidden dark:block" | |
/> | |
</Link> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment