import {Button} from "@/components/ui/button"; import {Mail, Pencil, Building, MapPin, User, Copy} from "lucide-react"; import {Card} from "@/components/ui/card"; import React from "react"; import { DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import {Tooltip, TooltipContent, TooltipTrigger} from "@/components/ui/tooltip"; import {Customer} from "@/services/customers/entities/customer"; interface Props { customer: Customer, handleOpenDialog: (content: React.ReactNode) => void; } export default function ContactInformationContent({customer, handleOpenDialog}: Readonly) { const copyToClipboard = async (text: string) => { await navigator.clipboard.writeText(text); }; const handleEditClick = () => { handleOpenDialog( Kontaktinformationen bearbeiten Bearbeite hier die Kontaktinformationen für {customer.name}.
{/* Add your form fields here */}

Form fields will go here.

Name: {customer.name}

E-Mail: {customer.email}

Firma: {customer.companyName}

Adresse: {customer.street}, {customer.zip} {customer.city}

); }; return (

Kontaktinformationen

{[ {icon: User, label: "Name", value: customer.name}, {icon: Mail, label: "E-Mail", value: customer.email, copyable: true}, {icon: Building, label: "Firma", value: customer.companyName}, {icon: MapPin, label: "Adresse", value: `${customer.street}, ${customer.zip} ${customer.city}`} ].map((item, index) => (

{item.label}

{item.value}

{item.copyable && ( Kopieren )}
))}
); }