"use client" import { type FullContact, fullContactDisplayName } from "@/lib/contacts/types" import { avatarColor, senderInitial } from "@/lib/sender-display" import { CONTACTS_PANEL_ROW_CLASS, CONTACTS_MUTED_TEXT, CONTACTS_HEADING_TEXT, } from "@/lib/contacts-chrome-classes" import { cn } from "@/lib/utils" interface ContactRowProps { contact: FullContact onClick: () => void } export function ContactRow({ contact, onClick }: ContactRowProps) { const displayName = fullContactDisplayName(contact) const name = displayName || contact.emails[0]?.value || contact.phones[0]?.value || "?" const subtitle = contact.emails[0]?.value || contact.phones[0]?.value || "" const initial = senderInitial(name) const bgColor = avatarColor(name) return ( ) }