'use client'; import { Badge } from '@/components/ui/badge'; import { User } from 'lucide-react'; interface ContactCellProps { contactId?: number; contacts?: Record; } export function ContactCell({ contactId, contacts }: ContactCellProps) { if (!contactId) { return -; } // Get contact from the contacts map const contact = contacts?.[contactId]; if (contact) { const contactName = `${contact.firstName || ''} ${contact.lastName || ''}`.trim(); if (contactName) { return ( {contactName} ); } } return ID: {contactId}; }