"use client" import Link from "next/link" import { cn } from "@/lib/utils" type UltiMailLogoProps = { className?: string /** `horizontal` = picto source + « Ultimail » (lisible, aligné barre). `mark` = picto seul (launcher). */ variant?: "horizontal" | "mark" /** 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 DEFAULT_INBOX_HREF = "/mail/inbox" export function UltiMailLogo({ className, variant = "horizontal", href = DEFAULT_INBOX_HREF, }: UltiMailLogoProps) { const mark = ( ) if (variant === "mark") { if (href === null) { return
{mark}
} return ( {mark} ) } const body = (
{mark} Ultimail
) if (href === null) { return
{body}
} return ( {body} ) }