diff --git a/app/property/[id]/page.js b/app/property/[id]/page.js index 88afeae..97b6792 100644 --- a/app/property/[id]/page.js +++ b/app/property/[id]/page.js @@ -342,7 +342,21 @@ export default function PropertyDetailsPage() { - + { + const url = window.location.href; + const title = property?.title || 'عقار'; + if (navigator.share) { + try { + await navigator.share({ title, text: `تحقق من هذا العقار: ${title}`, url }); + } catch {} + } else { + await navigator.clipboard.writeText(url); + toast.success('تم نسخ الرابط'); + } + }} + className="p-2 hover:bg-gray-100 rounded-full transition-colors" + >