import clsx from 'clsx'; export function StatusBadge({ status, compact = false }: { status: string; compact?: boolean }) { const styles: Record = { pending: 'bg-yellow-100 text-yellow-800', confirmed: 'bg-green-100 text-green-800', cancelled: 'bg-red-100 text-red-800', checked_in: 'bg-blue-100 text-blue-800', on_hold: 'bg-slate-100 text-slate-600', }; return ( {status.replace('_', ' ')} ); } // Ticket payment status: Paid (revenue), Unpaid (balance due at door), Comp (free guest). // Tickets created before the payment_status column default to unpaid via backfill. export function PaymentBadge({ paymentStatus, compact = false }: { paymentStatus?: string; compact?: boolean }) { if (!paymentStatus) return null; const styles: Record = { paid: 'bg-emerald-100 text-emerald-700', unpaid: 'bg-orange-100 text-orange-700', comp: 'bg-amber-100 text-amber-700', }; return ( {paymentStatus === 'comp' ? 'Comp' : paymentStatus === 'unpaid' ? 'Unpaid' : 'Paid'} ); }