import { UserAvatar } from './user-avatar'; import type * as GQL from '@repo/graphql/types'; import { Badge } from '@repo/ui/components/ui/badge'; import { cn } from '@repo/ui/lib/utils'; import { getCustomerFullName } from '@repo/utils/customer'; import Link from 'next/link'; import { memo } from 'react'; type ContactRowProps = GQL.CustomerFieldsFragment & { readonly className?: string; readonly description?: string; readonly showServices?: boolean; }; export const ContactRow = memo(function ({ className, description, ...contact }: ContactRowProps) { return (
{getCustomerFullName(contact)}
{description && ({description}
)}