SurfSense/surfsense_web/components/Logo.tsx
Anish Sarkar b7130100aa refactor: clean up login form and logo component
- Removed the "signing_in" text from the login form for a more streamlined user experience.
- Updated the Logo component to include "select-none" class for improved styling and user interaction.
2026-03-17 23:44:30 +05:30

33 lines
507 B
TypeScript

"use client";
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>
);
};