// components/vendors/ContactCard.tsx import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' import { Separator } from '@/components/ui/separator' import { Globe, Mail, MapPin, Phone, User } from 'lucide-react' interface Address { street: string city: string state: string zip: number } interface ContactCardProps { contactPerson?: string | null email?: string | null phone?: string | null website?: string | null address?: Address | null } export function ContactCard({ contactPerson, email, phone, website, address }: ContactCardProps) { return ( Contact Information
{contactPerson && (

Contact Person

{contactPerson}

)} {email && (

Email

{email}
)} {phone && (

Phone

{phone}
)} {website && (
)}
{address && ( <>

Address

{address.street}
{address.city}, {address.state} {address.zip}

)}
) }