"use client"; import { useState } from "react"; import { motion } from "framer-motion"; interface Props { summary: string; onXP: (amount: number) => void; } export default function ShareButton({ summary, onXP }: Props) { const [shared, setShared] = useState(false); const handleShare = () => { const message = `🏥 *ReportRaahat* से मेरी रिपोर्ट का सारांश:\n\n${summary}\n\n_ReportRaahat पर देखें: reportraahat.vercel.app_`; const url = `https://wa.me/?text=${encodeURIComponent(message)}`; window.open(url, "_blank"); setShared(true); onXP(30); }; return (

परिवार को भेजें और उन्हें भी समझाएं

💬 WhatsApp पर Share करें {shared && ( ✅ Shared! +30 XP earned 🎉 )}
🔒 No data is stored or sent to anyone
); }