"use client"; import { Avatar } from "@/components/ui/avatar"; import { cn } from "@/lib/utils"; import type { ContactCard } from "@/lib/jmap/types"; import { getContactDisplayName, getContactPrimaryEmail } from "@/stores/contact-store"; interface ContactListItemProps { contact: ContactCard; isSelected: boolean; onClick: () => void; } export function ContactListItem({ contact, isSelected, onClick }: ContactListItemProps) { const name = getContactDisplayName(contact); const email = getContactPrimaryEmail(contact); const org = contact.organizations ? Object.values(contact.organizations)[0]?.name : undefined; return ( ); }