"use client" import Link from "next/link" import { cn } from "@/lib/utils" type UltiMailLogoProps = { className?: string /** `horizontal` = picto + texte. `mark` = picto seul. `stacked` = wordmark empilé. */ variant?: "horizontal" | "mark" | "stacked" /** Lien au clic ; `null` = pas de lien. Défaut : boîte de réception. */ href?: string | null } /** Icône extraite du master PNG (pas le SVG VTracer, trop « M Gmail » à petite taille). */ const HEADER_ICON = "/brand/ultimail-header-icon.png" const STACKED_WORDMARK = "/brand/ultimail-wordmark-stacked.png" /** Fond transparent, picto couleurs d'origine, texte éclairci (pas de filter CSS invert/hue). */ const STACKED_WORDMARK_DARK = "/brand/ultimail-wordmark-stacked-dark.png" const DEFAULT_INBOX_HREF = "/mail/inbox" const STACKED_IMG_CLASS = "h-[11.25rem] w-auto max-w-none shrink-0 object-contain select-none sm:h-[12rem]" export function UltiMailLogo({ className, variant = "horizontal", href = DEFAULT_INBOX_HREF, }: UltiMailLogoProps) { const mark = ( ) if (variant === "mark") { if (href === null) { return
{mark}
} return ( {mark} ) } if (variant === "stacked") { const stacked = (
Ultimail Ultimail
) if (href === null) { return
{stacked}
} return ( {stacked} ) } const body = (
{mark} Ultimail
) if (href === null) { return
{body}
} return ( {body} ) }