'use client' import { motion, AnimatePresence } from 'framer-motion' import ImageGallery from './ImageGallery' import type { Listing } from '@/lib/types' interface Props { listing: Listing | null; onClose: () => void } export default function ListingDetailPanel({ listing, onClose }: Props) { return ( {listing && ( <> {/* Gradient accent at top */}
Lot Detail

{listing.title}

{listing.site_name} {listing.keyword} {listing.ai_match === 1 && AI Match} {listing.ai_match === 0 && AI Rejected}

Price

{listing.price_raw || '—'}

Score

{listing.score}

{listing.ai_reason && ( )}
{listing.images?.length > 0 && (

Images

)} Open lot →
)} ) } function MetaRow({ label, value, valueClass = 'text-g-muted' }: { label: string; value: string; valueClass?: string }) { return (
{label} {value}
) }