import Image from "next/image"; import type { ReactNode } from "react"; import { SurfaceCard } from "@/components/surface-card"; interface AuthPromoCardProps { /** Fully formatted "N users online" label. */ onlineLabel: string; title: ReactNode; subtitle: ReactNode; } /** * The single promo panel both `/login` and `/register` show above the form: * Frank, the online badge and a short welcome. Keeping it in one place means * the two auth pages can never drift apart visually again. */ export function AuthPromoCard({ onlineLabel, title, subtitle, }: AuthPromoCardProps) { return (