SurfSense/surfsense_web/components/Logo.tsx

30 lines
457 B
TypeScript
Raw Normal View History

2025-04-07 23:47:06 -07:00
"use client";
2025-07-27 10:41:15 -07:00
2025-04-07 23:47:06 -07:00
import Image from "next/image";
2025-07-27 10:41:15 -07:00
import Link from "next/link";
2025-04-07 23:47:06 -07:00
import { cn } from "@/lib/utils";
2026-02-06 18:22:19 +05:30
export const Logo = ({
className,
disableLink = false,
}: {
className?: string;
disableLink?: boolean;
}) => {
2026-02-05 16:43:48 -08:00
const image = (
<Image
src="/icon-128.svg"
className={cn("dark:invert", className)}
alt="logo"
width={128}
height={128}
/>
2025-07-27 10:05:37 -07:00
);
2026-02-05 16:43:48 -08:00
if (disableLink) {
return image;
}
return <Link href="/">{image}</Link>;
2025-04-07 23:47:06 -07:00
};