'use client'; import { MapPin, MessageCircle, Star, Users, X } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; import type { CruisingSpot } from '@/types'; import Link from 'next/link'; const CATEGORY_LABELS: Record = { park: 'Park', beach: 'Beach', gym: 'Gym', restroom: 'Restroom', bookstore: 'Bookstore', club: 'Club', other: 'Other', }; interface SpotDetailSheetProps { spot: CruisingSpot | null; open: boolean; onClose: () => void; } export function SpotDetailSheet({ spot, open, onClose }: SpotDetailSheetProps) { if (!spot || !open) return null; return (

{spot.name}

{CATEGORY_LABELS[spot.category] ?? spot.category} {spot.is_popular && ( Popular )}
{spot.description && (

{spot.description}

)}
{spot.city} {spot.rating} {spot.active_count} active
); }