'use client' import { CopyIcon, MessageCircleIcon } from 'lucide-react' import { useState } from 'react' import { toast } from 'sonner' import { Alert, AlertDescription } from '@/components/ui/Alert' import { Button } from '@/components/ui/button' import { Textarea } from '@/components/ui/textarea' import { buildWhatsAppUrl } from '@/lib/phone' export const SupporterShareKit = ({ supporterName, siteUrl, phone, }: { supporterName: string siteUrl: string phone: string }) => { const [copied, setCopied] = useState(false) const message = `Olá! ${supporterName}, conheça a campanha do deputado Jorge Solla: ${siteUrl}` const copyMessage = async () => { try { await navigator.clipboard.writeText(message) setCopied(true) toast.success('Texto copiado.') window.setTimeout(() => setCopied(false), 2000) } catch { toast.error('Não foi possível copiar o texto.') } } let whatsAppHref: string | null = null try { whatsAppHref = buildWhatsAppUrl(phone, message) } catch { whatsAppHref = null } return (

Kit de compartilhamento

Compartilhe individualmente — não use para disparo em massa (vedado pelo TSE).

Envie apenas para contatos que autorizaram contato. A campanha não realiza disparos automatizados.