"use client" import { MapPin, Phone, Mail, Globe, User } from "lucide-react" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" interface RetailerInfo { id: number name: string address?: string | null phone?: string | null contactPerson?: string | null email?: string | null website?: string | null } interface RetailerLocationProps { retailer?: RetailerInfo className?: string } export function RetailerLocation({ retailer, className }: RetailerLocationProps) { if (!retailer) { return ( Retailer Information

No retailer information available

) } return ( Retailer: {retailer.name} Location and contact information {retailer.address && (

Address

{retailer.address}

)} {retailer.phone && (

Phone

{retailer.phone}
)} {retailer.email && (

Email

{retailer.email}
)} {retailer.website && (

Website

{retailer.website}
)} {retailer.contactPerson && (

Contact Person

{retailer.contactPerson}

)}
) }