diff --git a/src/pages/ListingDetailPage.tsx b/src/pages/ListingDetailPage.tsx index 212762f..2d62930 100644 --- a/src/pages/ListingDetailPage.tsx +++ b/src/pages/ListingDetailPage.tsx @@ -25,7 +25,6 @@ import { genUserName } from '@/lib/genUserName'; import { cn } from '@/lib/utils'; import { ArrowLeft, - MessageCircle, CheckCircle, RotateCcw, Trash2, @@ -33,6 +32,8 @@ import { MapPin, Calendar, Tag, + Handshake, + Share2, } from 'lucide-react'; /** @@ -104,6 +105,17 @@ export default function ListingDetailPage() { const lightboxImages: LightboxImage[] = item.images.map((url) => ({ url, isOwner: isOwnListing })); + const offerMessage = `Hi! I saw your listing “${item.title}” on SkateSpots and I'd like to make an offer.`; + + const handleShare = async () => { + try { + await navigator.clipboard.writeText(window.location.href); + toast({ title: 'Link copied', description: 'Share it with a skater.' }); + } catch { + toast({ title: 'Could not copy the link', variant: 'destructive' }); + } + }; + const handleRelist = async () => { try { await relist(item.event); @@ -304,15 +316,23 @@ export default function ListingDetailPage() { +