import { cn } from "@/src/utils/tailwind"; import Link from "next/link"; import { VersionLabel } from "./VersionLabel"; import { env } from "@/src/env.mjs"; import { useUiCustomization } from "@/src/ee/features/ui-customization/useUiCustomization"; import { PlusIcon } from "lucide-react"; export const LangfuseIcon = ({ size = 32, className, }: { size?: number; className?: string; }) => ( // eslint-disable-next-line @next/next/no-img-element Langfuse Icon ); const LangfuseLogotypeOrCustomized = ({ size }: { size: "sm" | "xl" }) => { const uiCustomization = useUiCustomization(); if (uiCustomization?.logoLightModeHref && uiCustomization?.logoDarkModeHref) { // logo is a url, maximum aspect ratio of 1:3 needs to be supported according to docs return (
{/* eslint-disable-next-line @next/next/no-img-element */} Langfuse Logo {/* eslint-disable-next-line @next/next/no-img-element */} Langfuse Logo
); } return (
Langfuse
); }; export const LangfuseLogo = ({ className, size = "sm", version = false, }: { size?: "sm" | "xl"; className?: string; version?: boolean; }) => { return (
{/* Langfuse Logo */}
{version && ( )}
); };