SurfSense/surfsense_web/components/Logo.tsx
likiosliu 3d762ccf62 fix: remove unnecessary "use client" from pure presentational components
These components only render JSX with props and don't use hooks,
event handlers, or browser APIs.
2026-03-26 11:50:39 +08:00

31 lines
492 B
TypeScript

import Image from "next/image";
import Link from "next/link";
import { cn } from "@/lib/utils";
export const Logo = ({
className,
disableLink = false,
}: {
className?: string;
disableLink?: boolean;
}) => {
const image = (
<Image
src="/icon-128.svg"
className={cn("select-none dark:invert", className)}
alt="logo"
width={128}
height={128}
/>
);
if (disableLink) {
return image;
}
return (
<Link href="/" className="select-none">
{image}
</Link>
);
};