/**
* Refined gold WhatsApp link.
*
* Use 3 surfaces:
* - (footer row)
* - (nav)
* - (contact card)
*
* URL format expected: https://api.whatsapp.com/send/?phone=COUNTRYCODE+DIGITS&text&type=phone_number&app_absent=0
* Phone in URL = digits only (no + or spaces). Display string = formatted "+CC XX XXX XXXX".
*
* lucide-react has no WhatsApp glyph → use this inline SVG.
*/
import type { SVGProps } from "react";
export function WhatsAppIcon({ className, ...rest }: SVGProps) {
return (
);
}
type LinkProps = {
href: string;
display: string;
ariaLabel: string;
inline?: boolean; // true = footer row; false = larger contact-card row
};
export function WhatsAppLink({ href, display, ariaLabel, inline }: LinkProps) {
if (inline) {
return (
WhatsApp · {display}
);
}
return (
WhatsApp · {display}
);
}
type ButtonProps = {
href: string;
ariaLabel: string;
className?: string;
};
export function WhatsAppIconButton({ href, ariaLabel, className }: ButtonProps) {
return (
);
}