import type { CSSProperties, ReactNode } from "react"; const STRIPE_WARM = "repeating-linear-gradient(45deg,#efe9da,#efe9da 12px,#e6ddc9 12px,#e6ddc9 24px)"; /** * Zone d'image "vitrine" d'un adhérent. * - Photo de couverture présente -> affichée en plein cadre (cover). * - Sinon, le logo est affiché centré et réduit (contain ~80%), pas étiré. * - Sinon, fond rayé + texte placeholder. */ export function VitrineImage({ coverUrl, logoUrl, height, stripe = STRIPE_WARM, placeholder = "photo vitrine", children, }: { coverUrl?: string | null; logoUrl?: string | null; height: number; stripe?: string; placeholder?: string; children?: ReactNode; }) { const cover = coverUrl || null; const logoOnly = !cover && logoUrl ? logoUrl : null; const base: CSSProperties = { position: "relative", height, display: "flex", alignItems: "center", justifyContent: "center", overflow: "hidden", }; if (cover) { return (