import Link from 'next/link';
import type { LotRow } from '@/lib/queries/market-lists';
import { cn, confidenceLabel, fmtMoney, fmtNum, fmtRelative } from '@/lib/format';
import { Table, th, td, tdNum, EmptyState, Badge, VsRiv } from '@/components/ui/primitives';
import { FeeBasisPill, GradeBadge, Thumb } from './bits';
/**
* Auction intelligence table (§33–§35): the house's own estimate and bid in native currency, the
* buyer-pays all-in cost in USD (hammer + buyer's premium from the house schedule) and the gated
* comparison with the RareIndex Valuation. Lots the worker has not assessed yet say so.
*/
export function LotsIntelTable({ items, className, showHouse = true, emptyTitle = 'No auction lots', emptyDescription = 'Lots appear once auction-house connectors publish catalogues.' }: { items: LotRow[]; className?: string; showHouse?: boolean; emptyTitle?: string; emptyDescription?: string }) {
if (!items.length) return ;
return (