import { FadeIn } from "./fade-in"; import { getCvData, type Lang } from "@/lib/cv-data"; export function ContactSection({ lang }: { lang: Lang }) { const data = getCvData(lang); const { label, heading, emailLabel, locationLabel, websiteLabel } = data.ui.contact; const CONTACT_ITEMS = [ { label: emailLabel, value: data.contact.email, href: `mailto:${data.contact.email}` }, { label: locationLabel, value: data.contact.location, href: null }, { label: websiteLabel, value: "jp-visser.nl", href: "https://jp-visser.nl" }, ]; return (

{label}

{heading}

{CONTACT_ITEMS.map((item, i) => (

{item.label}

{item.href ? ( {item.value} ) : (

{item.value}

)}
))}
); }